#online Status

1 messages · Page 1 of 1 (latest)

steep hare
#

Add an config entry to toggle the service app online status.

If true then shows the red/green bar if false then hide the red/green bar

keen shale
#

Yes please, this is something that is a must for my server. Sadly, crims metagame if there are cops online or not and then go out and do all of their illegal stuff that's allowed without cops (drug sales) so they have no risk of being caught. I can't let them know when cops are offline for this reason.

solar marsh
# keen shale Yes please, this is something that is a must for my server. Sadly, crims metagam...

i mean easy solution is just dont let your players get away with metagaming or physically cop lock certain activities. another alternative is in your server [framework].lua the RefreshCompanies add a dummy player who is always on duty to the services you want to display as on duty. i havent implemented or tested this so may want to double check stuff like company messages and company calling to make sure the dummy player doesnt mess that up

keen shale
#

I have most "big time" criminal activities locked to needing PD online, but on my server for crims, selling drugs is the main source of income so I cannot lock that down to only when PD are online.

solar marsh
#

but yeah dummy should work just like i said mess around with it and make sure the calls and messages dont break

keen shale
#

I do like logging, but I don't like the bullshit session that ensues when I accuse someone of that lol (But I work nights and that's when I get home from work and the only time I can do my sales... not my fault there's no cops on! bla bla)

#

I will test the dummy thing and post back here if it works without issue so others may benefit from it.

solar marsh
solar marsh
keen shale
#

Its all good, I do appreciate it.

keen shale
#
for i = 1, #Config.Companies.Services do
    local jobData = Config.Companies.Services[i]
    Config.Companies.Services[i].open = openJobs[jobData.job] or true --Changed this from false to true. Now the "offline" status will never show for any jobs
end