You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vehicle owners aren't guaranteed to have keys to the vehicle
Reproduction
Set the logout key retention time to 0
Take a vehicle you own out of the garage, you get keys to it
Relog
You no longer have keys to the vehicle
Expected behavior
Vehicle owners should always be able to access their own vehicles
Actual behavior
There is no mechanism to give owners vehicle keys. Only the person who takes the vehicle out of the garage gets the keys
Additional context
Solution: add a statebag change handler for vehicleid which sets the owner's citizenid as a new statebag key on the vehicle. Then when checking the HasKey() function, if the player doesn't have keys and the citizenid matches the vehicle owner, give them keys
Current Version
latest commit
Custom Resources
N/A
The text was updated successfully, but these errors were encountered:
Summary
Vehicle owners aren't guaranteed to have keys to the vehicle
Reproduction
Expected behavior
Vehicle owners should always be able to access their own vehicles
Actual behavior
There is no mechanism to give owners vehicle keys. Only the person who takes the vehicle out of the garage gets the keys
Additional context
Solution: add a statebag change handler for vehicleid which sets the owner's citizenid as a new statebag key on the vehicle. Then when checking the HasKey() function, if the player doesn't have keys and the citizenid matches the vehicle owner, give them keys
Current Version
latest commit
Custom Resources
N/A
The text was updated successfully, but these errors were encountered: