Exports
Client
hasKey(plate, forceOwner)
Checks if a player has a vehicle key.
Parameters:
plate - string
- The vehicle plate
forceOwner - boolean
- Has to be the vehicle owner?
Returns:
true/false
- True or false
Example:
giveKey(plate)
Gives the vehicle key.
Parameters:
plate - string
- The vehicle plate
Example:
removeKey(plate)
Removes the vehicle key.
Parameters:
plate - string
- The vehicle plate
Example:
openKeyMenu()
Opens the givekey menu.
Example:
Server
hasKey(player, plate, forceOwner)
Checks if a player has a vehicle key.
Parameters:
player - number
- The player server id
plate - string
- The vehicle plate
forceOwner - boolean
- Has to be the vehicle owner?
Returns:
true/false
- True or false
Example:
giveKey(player, plate)
Gives the vehicle key.
Parameters:
player - number
- The player server id
plate - string
- The vehicle plate
Example:
removeKey(player, plate)
Removes the vehicle key.
Parameters:
player - number
- The player server id
plate - string
- The vehicle plate
Example:
updatePlate(oldPlate, newPlate)
Removes the vehicle key.
Parameters:
oldPlate - string
- The vehicle old plate
newPlate - string
- The vehicle new plate
Example:
Last updated