Create a script run only by the server

Hello everyone,

I am on the development of a script that create and save vehicle positions thanks to a DB but I would like those scripts to be run once by the server and not by the players.

Basically at each reboot it create the vehicles to save positions in the DB.

I already create all the code it just lacks or put this script.

Thank you all!

What do you mean ?
You want that :

  • When the server reboot, all the veh coords would be save to the DB ?
    or that :
  • When the server reboot, you wanna place the vehicles on the map ?

When the server restarts it places all the vehicles according to the coords that are in the DB

You need to tell to client to spawn the cars, so basically, this is not possible