Add licenseplate resource - #734
Conversation
New resource that allows players to set a custom license plate on the vehicle they are driving via an in-game GUI. Commands: - /setplate - open the license plate editor window - /license - alias for /setplate The client validates the plate length (max 8 characters) and sends the new value to the server, which applies it with setVehiclePlateText.
|
In my opinion, a standard resource should be as customizable as possible, so I suggest there should be an |
|
I will consider the possibility of adding exports of functions and configs — August 5 is included until the end of the day. Thank you for the feedback regarding exports and settings. |
|
thank you for your contribution. I think it would make sense to submit this to the MTA Community website instead, as we have a very high bar for new default resources, and this resource is limited in the value it can provide to server owners. This feature would probably be fine to add to the freeroam resource, but we will not be accepting this as a brand new resource. (If another maintainer disagrees, I'm happy to chat about it -- we can always reopen the pull request later.) |



Type: New resource
Summary
Adds a new
[gameplay]/licenseplateresource that lets players set a custom license plate on the vehicle they are currently driving through a small in-game GUI window.What the resource does
client.lua)/setplateand its alias/license.LicensePlate:setwith the vehicle and the plate, then hides the window.server.lua)LicensePlate:setevent.setVehiclePlateTextand confirms with a chat message.Files
client.lua- GUI creation, input validation, commands and event triggering.server.lua- validation and applying the plate viasetVehiclePlateText.meta.xml- resource definition, registers the client and server scripts.Tested