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

Vehicle spawn logic #80

Merged
merged 2 commits into from
Feb 24, 2025
Merged

Vehicle spawn logic #80

merged 2 commits into from
Feb 24, 2025

Conversation

Annalouu
Copy link
Contributor

With the old logic,

  • The vehicle spawn was a little bit inconsistent.
  • The vehicle spawns but not with the right plate.
  • Does not give the keys since its not the write vehicle.

New method

  • spawns the vehicle server side using the new natives
  • makes sure it has the right plate

Some of the code has been taken from qb-garages as this one needed a little bit of an update.

With the old logic, The vehicle spawn was a little bit inconsistent. as some times the vehicle spawns but not with the right plate which after results in not getting the keys to the vehicle.
@Frabom
Copy link

Frabom commented Feb 8, 2025

+1

@GhzGarage GhzGarage merged commit 2e1bcff into qbcore-framework:main Feb 24, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants