Custom Unit Number
Configuration guide, common issues & solutions, code snippets, and more.
Escrow Encrypted: Yes
Requirements: None
Usage
Place both the
uNumberProps
anduNumber
resources into your server.Edit your
server.cfg
file to start the resources:Configure the offsets and rotations for each possible digit place that can be shown on the vehicle in the
config.lua
file.Restart the
uNumber
resource as needed to apply the configuration changes.When in a configured vehicle, use the following commands to set your unit number:
/unitnum <number> <color>
: Sets the unit number with the specified color (black or white)./unitnum clear
: Clears the unit number from the vehicle.
Upcoming Features
Exports for developers to integrate with.
Ability to change the scale of the unit numbers.
Possible menu to easily configure the placement of the unit numbers.
Configuration
The config.lua
file contains the following configuration options:
commandName
: The command used to change the unit number. Example:"unitnum"
. Players can use this command followed by a number and color to set their unit number.uNumberVehicles
: A table that contains the vehicle configurations. Each entry represents a vehicle that can display unit numbers and contains the following properties:vehicle
: The spawn code of the vehicle. Example:"valor2rb"
.boneName
: The bone name to which the numbers are attached. Reference: FiveM Natives Documentation.numPos
: An array of offset values for the three number slots. Each entry represents a digit place and contains the following properties:posX
: The X position (left & right).posY
: The Y position (forward & back).posZ
: The Z position (up & down).rotX
: The X rotation (Roll left & right).rotY
: The Y rotation (Roll forward & back).rotZ
: The Z rotation (Spin).
Note: The documentation provided here is intended to help you understand and configure the Custom Unit Number script effectively.
Last updated