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

onClientPlayerWasted/onPlayerWasted in vehicles #2544

Open
FileEX opened this issue Feb 13, 2022 · 1 comment
Open

onClientPlayerWasted/onPlayerWasted in vehicles #2544

FileEX opened this issue Feb 13, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@FileEX
Copy link
Contributor

FileEX commented Feb 13, 2022

Describe the bug
If player died in vehicle (eg. under water or explosion) i think that event onClientVehicleExit & onVehicleExit should be called.

To reproduce

Expected behaviour
Trigger onClientVehicleExit and onVehicleExit if player died in vehicle

Screenshots

Version
1.5.9

Additional context

@FileEX FileEX added the bug Something isn't working label Feb 13, 2022
@etrnl1337
Copy link

Personally i think also not only onPlayerWasted should be added, but also when a vehicle is destroyed (onClientElementDestroy) and also onPlayerQuit. I have a lot of functions that need to let's say destroy vehicle when someone quits and event onVehicleExit or onClientVehicleExit won't trigger them but the person who quit was in a vehicle. It's very annoying, and time consuming because i always have to pass vehicle to table where key is player and when he quits i need to check that table and check if isElement and then proceed to destroy it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants