Dealerships
Plate Format
Requires Dealerships v1.1.5 or newer
When players purchase a new vehicle, you can customise the vehicle licence plate that will be generated for them. Your car plate can have letters, numbers, and spaces. It should be up to 8 characters long.
How to Write Your Plate Format
- Use
Afor any random letter. - Use
1for any random number. - Want a specific letter or number to always show up? Put a
^before it.
Examples
- All Random Letters:
AAAAAAAAgives something likeGHTPAXZQ. - Mix of Letters, Spaces and Numbers:
AA11 1AAmakes something likeGH49 8KJ. - Fixed Letter or Number:
^Z123 A^B1always hasZat the start andBin the second part, likeZ456 XB4.- For example, in the UK you would have a fixed year section, so you could use
AA^2^4 AAA, which would give something likeMA24 UAW.
- For example, in the UK you would have a fixed year section, so you could use
Quick Steps
- Open the
config.luafile - Find
Config.PlateFormat - Change it using
Afor letters,1for numbers, and^for fixed characters.
Customisation
If you're a developer and would like more control, the function is open source (Framework.Server.VehicleGeneratePlate) and can be found in framework/sv-functions.lua.