Description
We need to create a new function named player.PutToVehicle() to handle placing a player into a vehicle at a specified seat. This function must validate the seat availability based on the seat ID (ranging from 0 to 3) and handle the functionality according to an enforcement flag.
Tasks
Scope
The scope of this task includes networking code for synchronization, server-side Node.js scripting for validation and logic implementation, and modifications to the game SDK to introduce this functionality.
Description
We need to create a new function named
player.PutToVehicle()to handle placing a player into a vehicle at a specified seat. This function must validate the seat availability based on the seat ID (ranging from 0 to 3) and handle the functionality according to an enforcement flag.Tasks
player.PutToVehicle(vehId, seatId, forced)built-in.Scope
The scope of this task includes networking code for synchronization, server-side Node.js scripting for validation and logic implementation, and modifications to the game SDK to introduce this functionality.