Exports (client)
OpenInventory
Opens the key inventory for the player. If the menu is open, it will be closed instead.
GetPlayerKeys
Returns a list containing all player keys.
Returns:
table<table<plate: string, count: int, model: int>>
- List of keys with their plate, count and associated model.
GetPlayerVehicles
Returns a list of all vehicles a player owns.
Returns:
table<table<string, int>>
- List of vehicles with their plate and model hash.
GetPlayerVehiclesAndKeys
Returns a list of all vehicles a player owns.
Returns:
table<table<string, int>>
- List of vehicles with their plate and model hash.
table<table<string, int, int>>
- List of keys with their plate, count and associated model.
GetPlayerVehiclesAndKeyCount
Returns a list of all vehicles a player owns including the amount of keys.
Returns:
table<table<string, int, int>>
- List of vehicles with their plate, model hash and key count.
GetPlayerTempKeys
Returns a list of all temporary keys a player owns.
Returns:
dictionary<string, int>
- Plates associated with a model (or -1 if no model).
IsVehicleOwner
Check if a player is the owner of a vehicle.
Parameters:
vehicle - int
- A vehicle handle.
Returns:
bool
- True if player is owner.
IsKeyOwner
Check if a player is the owner of a key for a vehicle.
Parameters:
vehicle - int
- A vehicle handle.
Returns:
bool
- True if player is key owner.
IsVehicleOrKeyOwner
Check if a player is the owner of a vehicle or a key for the vehicle.
Parameters:
vehicle - int
- A vehicle handle.
Returns:
bool
- True if player is owner.
ToggleLock
Toggles the lock of the closest and owned vehicle.
Last updated