Personal tools

Lua/Events/Client/LocalPlayerExitVehicle

From JC2-MP Documentation

< Lua
Jump to: navigation, search
Name    LocalPlayerExitVehicle
Arguments (in table)    Vehicle vehicle
Return option    None


Description

Fired when you exit a vehicle, or when the vehicle is removed while you're in it.

Examples

Foo = function(args)
	local message = "You exited a "..args.vehicle:GetName()
	Chat:Print(message, Color(255, 255, 255))
end
 
Events:Subscribe("LocalPlayerExitVehicle", Foo)