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 |
||
(One intermediate revision by the same user not shown) | |||
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>| | ||
note=This function is not called when npc exit vehicle using [[ExitVehicle]] or [[ExitVehicleEx]] | |||
}} | }} |
Latest revision as of 14:37, 1 March 2024
Description:
This function is called when an NPC leaves a vehicle.
Parameters:
NoParams
Return Values:
This function does not return any specific values.
Important Note:
This function is not called when npc exit vehicle using ExitVehicle or ExitVehicleEx
Example
function OnNPCExitVehicle() { print("NPC exited vehicle\n"); }