Stuyk / altv-athena

A Roleplay Framework for alt:V by Stuyk
https://athenaframework.com/
228 stars 149 forks source link

Fixed: Vehicle menu not locking/unlocking #417

Closed ItsSpencer closed 1 year ago

ItsSpencer commented 1 year ago

Before: When standing outside of a vehicle and opening the vehicle wheel menu, nothing did happen on lock/unlock menu action.

Reason: The emit to the server didn't send the vehicle property with it, so the server just checked for the vehicle a player is sitting in.

After: The emit includes the selected vehicle entity and the lock/unlock menu action works properly.