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

tweak(resource/cache): update seat cache on vehicle change #679

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

mahanmoulaei
Copy link
Contributor

@mahanmoulaei mahanmoulaei commented Dec 12, 2024

With this change, seat cache event listeners will be triggered all the time when the player's vehicle changes. This is useful in scenarios where the player doesn't exit the vehicle, but we switch their vehicle and warp them into the same seat index, and we want to listen to the seat event to perform specific actions. Previously, seat listeners were not being triggered because the cached seat value stayed the same.

Copy link
Member

@jag3dagster jag3dagster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a reasonable scenario to cover and the code looks straightforward enough @thelindat

@thelindat thelindat merged commit 2b10e77 into overextended:master Jan 16, 2025
abdel1touimi pushed a commit to SaharaScripters/ox_lib that referenced this pull request Jan 26, 2025
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.

3 participants