Hey, I’ve been trying for a while now to make it so you can buy fire extinguishers ONLY if there is no fireman job online? How would i do this? Please help thanks.
for k, v in pairs(player.GetAll()) do
– someone is a fireman so we return false and disallow the function from running
– spawn extinguisher here
Basically you loop through all players when someone wants to buy a extinguisher, and if anyone is a fireman then return the function to prevent it from running further. If noone is, then let it continue to run and spawn the extinguisher.