Hello, I’m trying to develop a resource that makes public transports aviable. The idea is that one or more buses are spawned at the server start and then they will keep following a path with bus stops on the way.
So I wrote all the script client-side and some server-side like the creation of bus and bus driver ped. When the resource starts the server takes the first client and asks it to manage all the stuff (like driving the bus, stop at the bus stops…) and as long as the client who is running the script is online is good, but once he disconnects everything rightfully stops working.
So my question is: is there a way to make everything server-side? Like make the server take care of driving the bus ecc…
Here’s what I’ve done for now: https://github.com/FedericoDeBona/esx_publictransport