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}}"
 
28days (talk | contribs)
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|__EDIT_ME__}}
{{FuncDescription|This event is called when a vehicle is respawned.}}


{{FuncSyntax|OnVehicleRespawn}}
{{FuncSyntax|OnVehicleRespawn(vehicle)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|vehicle|The vehicle identifier.}}
== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang='Lua'>
AddEvent("OnVehicleRespawn", function (vehicleid)
end)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
{{ServerEvents}}
{{VehicleServerEvents}}

Latest revision as of 09:20, 4 March 2020

OnVehicleRespawn

Type: Event
Context: Server
Introduced: v1.0

Description

This event is called when a vehicle is respawned.

Syntax

OnVehicleRespawn(vehicle)

Parameters

  • vehicle
    The vehicle identifier.

Example

AddEvent("OnVehicleRespawn", function (vehicleid)
end)

See also