OnVehicleRespawn: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Event|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|OnVehicleRespawn}} {{FuncParameters}} == Example == __EDIT_ME__ {{RelatedFunctions}} {{ServerEvents}}" |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
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}} | {{FuncSyntax|OnVehicleRespawn(vehicle)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|vehicle|The vehicle identifier.}} | |||
== Example == | == Example == | ||
<syntaxhighlight lang='Lua'> | |||
AddEvent("OnVehicleRespawn", function (vehicleid) | |||
end) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{ | {{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)