Help
Troubleshooting
Most problems come from the resource folder, a missing dependency or database table, or a bug the assistant can fix once it sees the error.
The resource does not start
When the server says it cannot find the resource, or nothing happens in game, check these in order:
- Folder.
fxmanifest.luasits directly in the resource folder, not in a subfolder. - server.cfg. The
ensureline uses exactly the folder name. - Dependencies. Everything under
dependenciesinfxmanifest.luais installed and starts first. - Console. The server console names the problem on start, for example
Couldn't find resource speed-cameras.
Errors in the console
Generated code can contain mistakes, like any code. Copy the exact error line from the server console or the F8 console into the AI Script Generator chat, together with what you did when it happened. One error per message works best.
If the same error comes back after two tries, name the file with @ and describe how it should behave instead of how it fails.
A table does not exist
An error like Table 'qbcore.speed_camera_violations' doesn't exist means the SQL file of the project was not imported. Import sql/install.sql into your server database and restart the resource. See Database tables.
The cursor stays on screen
When a menu closes but the mouse cursor stays and you cannot move, the interface did not give the focus back to the game. Tell the assistant exactly that: "After closing the menu the cursor stays on screen. Release NUI focus on every way the menu can close, including Escape."
A change is missing or went too far
- It changed more than you asked. Open History, restore the version before, and ask again with one precise request.
- A change seems gone. Check History for the version that had it and restore it.
- Your own edit is gone. Edits save with
Ctrl+Sor when you click elsewhere; an unsaved tab shows a dot.
A run stopped or failed
A run can stop on a network error or when a request is too large for one run. Send the message again. Split big requests into smaller steps, for example the database first and the menu in a second message.
Out of credits
When your balance runs low, the chat shows Running low on credits, and No credits remaining once it is empty. Every account gets 25 free credits on each day it signs in. For more, top up or choose a plan on the pricing page.
Still stuck
Use Report a problem at the bottom right of the project page, so we see the project you mean, or ask in the SwisserAI Discord with the link to the project.