xnPlates
So I have been seeing a whole lot of pretty awful license plate scripts as of late (paid ones for that matter), so I decided to make my own more powerful one, with the help of Bubble adding a custom native for me (and for all of you). So basically this script allows you to replace the texture of any license plate and the generation for each license plate type and isn’t performance degrading like the others that use web based images.
And no this isn’t going to cause joining the server to be slower, my example with all 6 plates replaced, plus the normal map is only 75kb in size. Instantaneous download for any internet connection.
This will also not overwrite any plates you manually change in any other scripts.
Installation
Copy xnPlates to your resources folder and add the following to your server.cfg.
ensure xnPlates; exec @xnPlates/plates.cfg
Then to configure the resource for your own needs you will need to edit the included plates.cfg
file in the resource. The file includes examples for all 6 plates being edited, you can delete the ones you don’t want to replace, they are not required.
Please note: all options are OPTIONAL, if you don’t define a “fileName” then it will only change the pattern and not replace the plate texture. If the “normalName” is not defined it’ll use the default blank plate normal I have included. If you don’t define a “pattern” then it will use the standard pattern.
So the fileName is the name of the file that you have placed in the plates
folder of the resource. Your images in there must be in png format and try to keep them to the same aspect ratio as the included examples. You can name them however you want, just make sure you update the name in your plates.cfg
.
The pattern can include any patterns listed in the native repo for the SetDefaultVehicleNumberPlateTextPattern native.
I have included a blank license plate called exampleplate.png
that you can use as a template if need be.
Old Plates
Here is a list of the old plates to make it easier to recognise what you’re replacing;
plate01
plate02
plate03
plate04
plate05
yankton_plate
The following plates require you to be on build 3095 or higher;
plate_mod_01
plate_mod_02
plate_mod_03
plate_mod_04
plate_mod_05
plate_mod_06
plate_mod_07
Download
xnPlates.zip (264.5 KB)
Update
- Added the new plates from build 3095
- Made it so the pattern is optional (Please note, patterns are mostly useless for the new plates since they don’t spawn naturally)
Old Updates
- You can now just define a plate pattern without changing the plate texture
- You can now specify custom plate normal textures