Lua Events/OnUseVehicle

From PZwiki



Event

OnUseVehicle

Description

Triggered when a character is using a vehicle.

Parameters

  • IsoPlayer The player who's driving the vehicle.
  • BaseVehicle The vehicle which the player is driving.
  • Boolean Whether the player had been keeping the accelerator pressed or if it was just a tap.

Examples

local function OnUseVehicle(player, baseVehicle, pressedNotTapped)
	-- Your code here
end

Events.OnUseVehicle.Add(OnUseVehicle)

See also