Abstract Playtime
Installation Steps:
Server Configuration
Update the
server.cfg
file to include the following resources on startup:ox_lib
ox_inventory
es_extended
orqb-core
abstract_playtime
The resource is fully configurable through the files available in the
config
folder.Enjoy
Configuration Overview
-- Client Config return { settings = { -- Some reason someone requested this stupid idea lol to be configurable that way to not let players know hours they need to use a weapon kinda stupid but aye... ---@type number dialogHours = 24, }, bypass = { -- Jobs that are allowed to bypass restriction checks. ---@type table<string> jobs = { 'police', 'ambulance' }, -- Weapons that are allowed to bypass usage restrictions. ---@type table<string> weapons = { 'WEAPON_PETROLCAN', 'WEAPON_NIGHTSTICK', } } }
-- Server Config return { settings = { -- Framework selection: choose 'esx' or 'qb'. ---@type string framework = 'esx', -- Minimum hours required to bypass restrictions should always match dialog hours unless. ---@type number requiredHours = 24, }, bypass = { -- Jobs that are allowed to bypass restriction checks. ---@type table<string> jobs = { 'police', 'ambulance' } }, permissions = { -- Groups allowed to use the /setplaytime command. ---@type table<string> allowedGroups = { 'admin', 'superadmin' } }, webhooks = { -- Webhook for logging playtime changes via /setplaytime. ---@type string link = '' } }
Last updated