Exports
All exports are accessible via exports.rm_customplate:<name>(...).
Client Exports
isPlateHidden(vehicle)
Returns whether the vehicle's real plate is currently hidden by an active flipper.
Parameters
vehicle
number
Vehicle entity handle
Returns
boolean
true if the flipper is installed and toggled on, false otherwise
Example
if exports.rm_customplate:isPlateHidden(cache.vehicle) then
print('plate is hidden by flipper')
endhasCustomPlate(vehicle)
Returns whether the vehicle has any custom plate data attached (normal custom plate or flipper).
Parameters
vehicle
number
Vehicle entity handle
Returns
boolean
true if the vehicle has at least one rendered plate or flipper data, false otherwise
Example
getPlateData(vehicle)
Returns the plate data attached to the vehicle, or nil if none. If a flipper is installed it is returned first; otherwise the normal plate data is read from the entity's state bag.
Parameters
vehicle
number
Vehicle entity handle
Returns
table | nil
Flipper data if installed, otherwise normal plate array, or nil if the vehicle has no custom plate data
Return shape
Normal custom plate (array of plate entries):
Black flipper:
Custom flipper:
Example
Server Exports
isPlateHidden(plate)
Returns whether the vehicle's plate is currently hidden by an active flipper.
Parameters
plate
string
Vehicle plate text (e.g. "ABC1234")
Returns
boolean
true if a flipper is installed and toggled on, false otherwise
Example
hasCustomPlate(plate)
Returns whether the given plate has any custom plate data persisted.
Parameters
plate
string
Vehicle plate text
Returns
boolean
true if the cache has data for this plate (normal plate or flipper), false otherwise
Example
getPlateData(plate)
Returns the full server-side plate data record, or nil if no data exists for the plate.
Parameters
plate
string
Vehicle plate text
Returns
table | nil
Plate data table, or nil if nothing is stored for this plate
Return shape
Normal custom plate (array of plate entries):
Black flipper:
Custom flipper:
Example
Last updated