hello everyone.
im trying to make it so when people purchase a car the number plate is change to certain plate for example
standard ingame cars have plates such as “B38JD1K3”
i want to make purchased cars spawn with custom plates such as:
"LOC-(any random 4 letters or numbers)
i have found this already in the source for esx vehicle shop.
SetVehicleNumberPlateText(LastVehicles[#LastVehicles ], 'LOC ’ … ESX.GetRandomString(5))
when i enter the dealership and stand in the marker and going thru the list of cars they show the correct plate i want but when u buy it and spawn outside with the purchased car the plate goes back to original of “B38JD1K3”
ive looked thru the script to see if theres another place i change it to but cant seem to find anywhere.
anyone ever changed theres and could possibly help.thanks
1 Like
ewo
October 1, 2019, 3:31pm
2
Hey!
If you have this vehicleshop plugin: https://github.com/ESX-Org/esx_vehicleshop
Then you can easily edit it in “config.lua” in the line 13-17.
Here’s how the line looks.
– looks like this: ‘LLL NNN’
– The maximum plate length is 8 chars (including spaces & symbols), don’t go past it!
Config.PlateLetters = 3
Config.PlateNumbers = 3
Config.PlateUseSpace = true
You can change the number of letters with Config.PlateLetters and numbers with Config.PlateNumbers.
Hope it helps!
Thanks for your help fella however looking in my Config.lua lines 13-17 doesnt show that what u said bit just shows the shop entering position.
ewo
October 1, 2019, 7:51pm
4
It hasn’t to be line 13-17 but it was for me, just that you see the Config.PlateLetters and Config.PlateNumbers.
Is there a way to get a custom plate for a certain persons car?