How to make FiveM scripts with Claude Code (that work on any server)
Most AI-written FiveM scripts fail for the same few reasons. None of them is the AI being unable to write Lua.
1. Say what your server runs
Framework, inventory, target, notifications. An AI that guesses writes for a server you do not have. If the script must run on any server, say so from the first message.
2. Keep the server in charge
The client asks, the server decides. Money, items, rewards and cooldowns are checked on the server, never trusted from a client event. This is the first thing to read in any generated script.
3. Small steps, tested in game
One feature, then start the resource and try it. Read the F8 console and the server console, and paste the full error back. Long scripts written in one go hide their mistakes.
4. Watch what runs every frame
A loop that runs every frame when nothing is happening costs every player, all the time. Ask for loops that sleep when the player is far away, and check the resource monitor before you ship.
5. A config and translations from the start
Prices, positions and texts in a config file and a locale file. Your buyers will change them without touching the code.
What RP Builder adds
RP Builder adds what a general assistant does not have: the engine pitfalls we measured in game on our own scripts, and a way to try a script in game before you ship it.