For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Name
Type
Description

vehicle

number

Vehicle entity handle

Returns

Type
Description

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')
end

hasCustomPlate(vehicle)

Returns whether the vehicle has any custom plate data attached (normal custom plate or flipper).

Parameters

Name
Type
Description

vehicle

number

Vehicle entity handle

Returns

Type
Description

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

Name
Type
Description

vehicle

number

Vehicle entity handle

Returns

Type
Description

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

Name
Type
Description

plate

string

Vehicle plate text (e.g. "ABC1234")

Returns

Type
Description

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

Name
Type
Description

plate

string

Vehicle plate text

Returns

Type
Description

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

Name
Type
Description

plate

string

Vehicle plate text

Returns

Type
Description

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