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

fix(es_extended/client/functions): properly call SetVehicleExtra #1504

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

Kenshiin13
Copy link
Contributor

@Kenshiin13 Kenshiin13 commented Nov 25, 2024

Description

The native SetVehicleExtra dictates whether a vehicle extra should be disabled, while IsVehicleExtraTurnedOn returns whether an extra is enabled. The latter is saved in the DB as vehicle properties. So we need to negate that value to properly reflect which vehicle extras we should toggle. This also fixes issues with helicopters missing key body parts when being parked out from garages, as the vehicle extras are being removed when they should not.

@Kenshiin13 Kenshiin13 merged commit cdfe24d into esx-framework:dev Nov 25, 2024
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
Status: Ready for Next Update
Development

Successfully merging this pull request may close these issues.

2 participants