Instead of restarting a resource through something like icecon, is there a script to restart a resource that one could put in a .lua?
Nope, itās programmatically impossible to do as resources are server-global.
Nooooooooooooooooooo! lol
Thanks @DGKN
I know this thread is about 4 years old, but this may help someoneā¦
ExecuteCommand(āensure resource_nameā)
lol people is so stupid, is normal than you can use ExecuteCommand(ārestart start ensure stop etc ā¦
resource_nameā)
impossible does not exist in computer science, especially in programming, everything is possible, it depends on how much a programmer has a high IQ haha
I am using this to restart a script but the server always crashes and I get this error, does anyone have a solution for this? I have tested it on several machines, builds, and different servers. It always results in this crash.
CFG: add_principal resource.striata_resources group.admin
Script Server side: ExecuteCommand(āensure striata_resourcesā)