OnNPCExitVehicle: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Welcome| desc=This function is called when an NPC leaves a vehicle.| params=<syntaxhighlight lang="lua">(vehicleid)</syntaxhighlight> <poem>:: vehicle : The ID of the vehicl...") |
No edit summary |
||
Line 1: | Line 1: | ||
{{Welcome| | {{Welcome| | ||
desc=This function is called when an NPC leaves a vehicle.| | desc=This function is called when an NPC leaves a vehicle.| | ||
params=<syntaxhighlight lang="lua"> | params=<syntaxhighlight lang="lua">NoParams</syntaxhighlight>| | ||
retvals=This function does not return any specific values.| | retvals=This function does not return any specific values.| | ||
example=<source lang="lua"> | example=<source lang="lua"> | ||
function OnNPCExitVehicle( | function OnNPCExitVehicle() | ||
{ | { | ||
print("NPC exited vehicle | print("NPC exited vehicle\n"); | ||
} | } | ||
</source> | </source> | ||
}} | }} |
Revision as of 14:08, 9 March 2022
Description:
This function is called when an NPC leaves a vehicle.
Parameters:
NoParams
Return Values:
This function does not return any specific values.
Example
function OnNPCExitVehicle() { print("NPC exited vehicle\n"); }