High Scripts

Documentation

Global

Global statebags

Services

NameTypeDescription
services:[name]numberNumber of active workers in service

Examples

server.lua
-- Example use of services:[name] global state.
local activePolice = GlobalState.state['services:police']
if(activePolice >= 1) then
    print("There is an active, on duty police officer in the call center!")
end

Last updated on

On this page