Skip to content

st.jobscache — Job Count Cache (Server) ​

Tracks how many online players are on each job. Automatically updated on job changes and player connect/disconnect.

lua
-- Get number of players with a given job
local count = st.jobscache:getJobCount('police')
local count = st.jobscache:getJobCount('mechanic')