Exports
Server- and Client-sided exports
Server Exports
This section provides details on the available server-side exports.
TrimPlate
Trims a given plate.
Parameters
plate
(string) – The vehicle number plate.
Returns
string
– The trimmed plate.
IsPlayerEmployee
Checks if player is an employee of a specific shop or any shop.
Parameters
src
(number) – The player source.shopId?
(number) – The ID of the shop you check for. If shopId is nil, it checks all shops.
Returns
boolean
–true
if employee, otherwisefalse
.number|nil
– If employee, then Shop ID is also returne, otherwisenil
.
Client Exports
This section provides details on the available client-side exports
IsVehicleOnCarJack
Returns whether a given vehicle entity is on a car jack or not.
Parameters
vehicle
(number) – The vehicle entity handle.
Returns
boolean
–true
if vehicle is on car jack, otherwisefalse
.
GetVehicleMileage
Returns the current mileage of a given vehicle entity.
Parameters
vehicle
(number) – The vehicle entity handle.
Returns
number
– The vehicle mileage
IsPlayerDiagnosing
Returns whether the player is currently diagnosing or inspecting a vehicle.
Returns
boolean
Last updated