OnVehicleRespawn: Difference between revisions
From Onset Developer Wiki
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Event|Server|1.0}} | {{Info|Event|Server|1.0}} | ||
{{FuncDescription| | {{FuncDescription|This event is called when a vehicle is respawned.}} | ||
{{FuncSyntax|OnVehicleRespawn(vehicle)}} | {{FuncSyntax|OnVehicleRespawn(vehicle)}} | ||
Line 9: | Line 9: | ||
== Example == | == Example == | ||
<syntaxhighlight lang='Lua'> | |||
AddEvent("OnVehicleRespawn", function (vehicleid) | |||
end) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{VehicleServerEvents}} | {{VehicleServerEvents}} |
Latest revision as of 09:20, 4 March 2020
Description
This event is called when a vehicle is respawned.
Syntax
OnVehicleRespawn(vehicle)
Parameters
- vehicle
The vehicle identifier.
Example
AddEvent("OnVehicleRespawn", function (vehicleid)
end)