EnterVehicle: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 5: Line 5:
<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.
::seatid : The seat id. 0 means driver seat.
If the server grants the request [[OnNPCEnterVehicle]] is called.</poem>|
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);

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.