Functions
State Bags
lightAnim:
true
- Light animation is in progresssuspensionAnim:
true
- Suspension animation is in progressleavedKeys:
true
- The NPC left the keys in the vehiclecantFindKeys:
true
- Keys cannot be found in the vehiclewasHotwired:
true
- The wires have been connected in the vehiclealreadyJacked:
true
- The vehicle has been stolenengineEnabled:
true
- The engine was started by the remote ignition system
Animations
lightAnim(vehicle, newLightsMultiplier, interiorLight, data)
vehicle:
number
newLightsMultiplier:
float
interiorLight:
boolean
data:
array of objects
duration:
number
gap:
number
fadeIn:
boolean
fadeOut:
boolean
Give Key
exports["is_vehiclekeys"]:GiveKey(plate)
plate:
string
Remove Key
exports["is_vehiclekeys"]:RemoveKey(plate)
plate:
string
Has Keys
exports["is_vehiclekeys"]:HasKeys(plate)
plate:
string
return: boolean
Getting Script Type Key
exports["is_vehiclekeys"]:getKeyForVehicle(vehicle)
vehicle:
number
return: string("new_car", "old_car", "universal", "bike")
Setting Lock State
TriggerServerEvent("is_vehiclekeys:setLockState", netId, state)
netId:
number
state:
number(1 = unlocked, 2 = locked)
Toggle Lock In Nearest Vehicle
exports["is_vehiclekeys"]:toggleLockNearestVehicle()
Last updated