Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

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

Merged
thelindat merged 1 commit intooverextended:masterfrom
mahanmoulaei:cache-seat
Jan 16, 2025
Merged

tweak(resource/cache): update seat cache on vehicle change#679
thelindat merged 1 commit intooverextended:masterfrom
mahanmoulaei:cache-seat

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
Collaborator

@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants