Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement player.PutToVehicle JS built-in #48

Open
4 of 5 tasks
zpl-zak opened this issue Jan 13, 2024 · 1 comment · May be fixed by #68
Open
4 of 5 tasks

Implement player.PutToVehicle JS built-in #48

zpl-zak opened this issue Jan 13, 2024 · 1 comment · May be fixed by #68
Assignees
Labels
enhancement New feature or request priority:high

Comments

@zpl-zak
Copy link
Member

zpl-zak commented Jan 13, 2024

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.

@zpl-zak zpl-zak added enhancement New feature or request priority:high labels Jan 13, 2024
@Deewarz Deewarz mentioned this issue Jan 18, 2024
6 tasks
@zpl-zak zpl-zak moved this to In Progress in MafiaHub Dashboard Jan 28, 2024
@zpl-zak zpl-zak linked a pull request Jan 28, 2024 that will close this issue
@zpl-zak
Copy link
Member Author

zpl-zak commented Jan 28, 2024

Will be closed by #68

@zpl-zak zpl-zak added this to the racing gamemode milestone Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority:high
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

2 participants