Skip to content

Implement player.PutToVehicle lua built-in #48

Description

@zpl-zak

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

  • Create the player.PutToVehicle(vehId, seatId, forced) built-in.
  • Implement seat ID validation (0-3) and occupancy checks on the server side.
  • Add support for the enforcement flag to either force the player into the seat or let the game handle it.
  • Update the network code to handle the communication of this action between the client and server.
  • Test the implementation to ensure reliability and correctness in various scenarios.

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.

Metadata

Metadata

Type

No type

Projects

Status
In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions