Drop everything in a folder called pruncode in your resources folder.
Start the resource
Configuration
How to open the menu?
Just type /runcode2 or press F5 (default key)
How to change the shortcut key?
The bind is set in client/client.lua
How to give people/me access to the menu?
In your server/whatever.cfg add this:
# if you are using groups
add_ace group.admin runcode2 allow
# if you are not using groups with your steam/rockstar/fivem identifier
add_ace identifier.steam:110000105c967cf runcode2 allow
You can also edit the script if you use your own permission system.
“No reimplementations of core resources allowed. If you want to improve on a system resource, do so by actually providing a PR to said resource.”
Is the answer I got while posting almost the same thing…
I just saw this. Come on here occasionally these days.
Runcode on its own is “reasonably” safe - unless the rcon password is broken. Still wouldn’t advise anyone to run it unless you have a strange and unique reason to use it.
Second note, I couldn’t help but be curious and looked at the code of this new runcode thing or whatever you’re calling it.
I can break it, if the whole CEF thing is still do-able anyone can do it, or if you have an executor that makes it even easier. The server side for this is a joke, unless I’m just suffering from tunnel vision on a phone.
I’ll post how tomorrow - late here. If I don’t someone message me and remind me since they show up in my email.
You can’t.
One thing I could add here is something to verify it this is invoked from the current resource, but pretty useless if you already have a breach in your server.
Also
Runcode on its own is “reasonably” safe - unless the rcon password is broken. Still wouldn’t advise anyone to run it unless you have a strange and unique reason to use it.
Don’t run any kind of runcode resource in your production server if you want to be 100% safe