Vehicleshop enable/disable dealership job when boss is online


Hello, I’m not a dev by any means and just looked at lua for the first time, but I’m trying to help out the dev on the server I’m playing on. What I’m trying to do, is have it so that the car dealership job gets enabled / disabled when the boss is online of offline. This way, players wouldn’t be dependent on the boss and they would be able to purchase cars normally when the boss is offline, or buy cars through the boss when he’s online.

Config.EnableSocietyOwnedVehicles = false

In theory, basically I would have to set this to true or false whether the boss is online or not. Any ideas on how to do this?