EnterVehicle: Difference between revisions

From NPC for VCMP 0.4 Servers
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
Line 8: Line 8:
EnterVehicle(23, 0);
EnterVehicle(23, 0);
</source>|
</source>|
relfuncs=*[[OnVehicleEnter]]
relfuncs=*[[OnNPCEnterVehicle]]
}}
}}

Revision as of 14:08, 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.


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.