Allowed Jobs

Access to the neon controller menu can be limited to selected jobs. The config can be set as a string to limit the menu to a specific job, or as a table of strings to allow multiple jobs. Setting the config as 'nil' will allow everyone to access the menu

Examples:

Everyone can access

shared/config.lua;
-- Jobs or groups that players must a part of to open the menu. String or table. Set as 'nil' to allow access to everyone. 
Config.RequiredGroup = nil

Only police can access

shared/config.lua;
-- Jobs or groups that players must a part of to open the menu. String or table. Set as 'nil' to allow access to everyone. 
Config.RequiredGroup = 'police'

Only police and mechanics can access

shared/config.lua;
-- Jobs or groups that players must a part of to open the menu. String or table. Set as 'nil' to allow access to everyone. 
Config.RequiredGroup = {'police' = true, 'mechanic' = true}

Last updated