EnterVehicle: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Welcome| desc=Sends request to server for entering into a vehicle.| params=<syntaxhighlight lang="lua">(vehicleid, seatid) </syntaxhighlight> <poem>::vehicleid : The id of the vehicle to enter into. ::seatid : The seat id. 0 means driver seat.</poem>| example=<source lang="lua"> EnterVehicle(23, 0); </source>| relfuncs=*OnVehicleEnter }}") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
seatid) </syntaxhighlight> | seatid) </syntaxhighlight> | ||
<poem>::vehicleid : The id of the vehicle to enter into. | <poem>::vehicleid : The id of the vehicle to enter into. | ||
::seatid : The seat id. 0 means driver seat.</poem>| | ::seatid : The seat id. 0 means driver seat. | ||
If the server grants the request, the function [[OnNPCEnterVehicle]] is called.</poem>| | |||
example=<source lang="lua"> | example=<source lang="lua"> | ||
EnterVehicle(23, 0); | EnterVehicle(23, 0); | ||
</source>| | </source>| | ||
relfuncs=*[[ | relfuncs=*[[OnNPCEnterVehicle]] | ||
}} | }} |
Latest revision as of 14:12, 14 February 2023
Description:
Sends request to server for entering into a vehicle.
Parameters:
(vehicleid, seatid)
vehicleid : The id of the vehicle to enter into.
seatid : The seat id. 0 means driver seat.
If the server grants the request, the function OnNPCEnterVehicle is called.
Return Values:
This function does not return any specific values.
Example
EnterVehicle(23, 0);
Related Functions
The following functions may be helpful as they relate to this function in one way or another.