Restrictions to Opening Menu
By default, any occupant of the vehicle can open the menu (though passengers have limited access compared to the driver).
As a default restriction, passengers who are in handcuffs will not be allowed to open the menu.
To add, remove, or modify any restrictions, edit the openCCAfterCheck(veh) function located in [shared/client-functions.lua]. To add your desired conditions. If you need to access server-side functions for more complex conditions, please open a ticket in our Discord server for assistance.
-- If you want to add any restrictions/conditions for opening the vehicle menu, you can add them here
-- By defualt, the player cannot open the menu if in handcuffs. Open a ticket in our discord,
-- if for whatever reason, you want handcuffed players to use the menu
function openCCAfterCheck()
openCC() -- This will actually open the menu, so add your conditions before this
end
Last updated