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: the “fileName” and “normalName” 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.
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
Download xnPlates.zip (81.2 KB)
Update
- You can now just define a plate pattern without changing the plate texture
- You can now specify custom plate normal textures