Events

Event Triggers

vehiclekeys:client:setOwner

Determines the owner of the vehicle with the specified license plate and gives the key to player

TriggerClientEvent('vehiclekeys:client:SetOwner', playerId, plate)
  • playerId: number

  • plate: string

dusa_vehiclekeys:client:GiveKeys

The player gives the key of the nearest vehicle they own to the person next to them

TriggerClientEvent('dusa_vehiclekeys:client:GiveKeys', playerId)
  • playerId: number

dusa_vehiclekeys:client:RemoveKeys

Removes the specified license plate from the player's list of owned keys.

TriggerClientEvent('dusa_vehiclekeys:client:RemoveKeys', playerId, plate)
  • playerId: number

  • plate: string

dusa_vehiclekeys:client:ToggleEngine

If the player is inside a vehicle, they turn the vehicle's engine on or off.

TriggerClientEvent('dusa_vehiclekeys:client:ToggleEngine', playerId)
  • playerId: number

Last updated