Devtools
Step-by-step installation guide, common issues & solutions, code snippets, error codes, config previews, locales previews, SQL previews, and changelogs; all in 1 easily accessible place.
Translate
INSTALLATION GUIDE
1. Unzip the cd_devtools.zip
folder and place this folder in your server's resource folder.
2. Before starting the script, please read the config.lua
(this is located inside the main cd_devtools folder) and configure the script to suit your server's needs.
3. Add the resource to your server start config: ensure cd_devtools
. The name of the folder must not be changed or the resource will not function correctly.
Step 1 - Table Viewer
Simply trigger the event below, sending an LUA table in the first argument. The UI will only open when you trigger the event. This event can be placed in while loops and the displayed table will be updated.
Notes
You can disable the NUI focus by clicking
middle mouse button
while the UI is still open, and the UI will stay on your screen even while you are triggering the event so you can see the table being updated live.You can reopen the UI and display the last table by pressing
numpad enter
while the UI is closed.Yes, it will be high ms on resmon when being triggered from a loop but this is a developer resource for dev servers only.
Step 2 - Quick Resource Restart
The purpose of this feature is to be able to quickly restart scripts when developing and debugging. To save a script to restart you can use the chat command below to save your chosen script.
Use the chat command /restart_script "resource_name"
to save the name of your chosen resource in the restart_script.txt
file and cache it in the server side. Now when you start your server or restart the resource you can simply press the (numpad +)
key to restart the resource.
Chat commands
Command | Example | Description |
/restart_script | /restart_script cd_garage | Save the name of a resource to use in the quick restart keypress. The example command will save the resource "cd_garage". |
Default Key Binds
Key | Description |
Middle Mouse Button | While the UI is opened, this will toggle the NUI focus (mouse on screen). |
Escape | Close the UI. |
NUMPAD + | Quickly restart your chosen script. |
Numpad Enter | Reopen the UI and display the last table. |
SCRIPT NOT WORKING?
Common Issues
🔔 Folder Name Make sure the name of the folder is cd_devtools.
Troubleshooting
1. Check for obvious error prints in the server console and the client F8 console. If you don't see any obvious errors make sure to restart the script while the server is live and check again.
2. If none of the above worked, have a second read through the installation guide above, you may have missed something - you are only human.
If all else fails, contact the Codesign Team in the Codesign Discord.
CONFIGS & LOCALES
CHANGELOG
Files Changed: Not every update requires you to replace the whole folder. We do this because we understand it's a pain to redo the configs for every update.
All Files - This means you should delete your old
cd_devtools
folder, download and add in the latest version, reconfigure the configs folder and restart your server.Specific Files - This means you can simply copy and paste the SPECIFIC new files over the old ones and restart the server.
Last updated