Mining gold ore
Develop

Write the rules of the colony

Resources are folders of Lua and JSON. The server runs them, the panel edits their config, the launcher brings your content to players.

-- resources/bounty/server/main.lua
RegisterCommand("bounty", function(args)
    local target, ore = tonumber(args[1]), tonumber(args[2])
    bounties[target] = (bounties[target] or 0) + ore
    Notify(-1, "banner", "Kopfgeld",
        GetPlayerName(target) .. ": " .. ore .. " Erz", 6)
end)
The building blocks

If you know FiveM, you know this

Events

characterSelected, oreMined, craftFinished, creatureKilled – react to anything the core does.

Natives

GiveItem, Notify, AddProfessionXp, GetStats, TradeSwap – checked by the server, never by the client.

Config schema

Describe your settings once; the admin panel builds the editor for them.

Talk to the game

CallGame sends to the mod, client events come back – menus, prompts, minigames.

Locales

Every text in a language file – English, German, Russian, Polish and more.

Your own content

Clothing, props and textures from Blender; the launcher ships them to players.

A resource, whole

Two files and you are running

A manifest says what runs; a script does the work. Add ensure bounty to server.cfg and restart only that resource.

// resources/bounty/resource.json
{
  "name": "bounty",
  "version": "1.0.0",
  "dependencies": ["framework"],
  "server_scripts": ["server/main.lua"]
}