TRACK B · 58 LESSONS · Verified 2026

Write scripts

You want to code. Start with the Lua language, build a resource, learn how the client and server talk, save data, then ship real features and production patterns.

For: You are new to code, or you know a little Lua.You finish with: A console line your own resource prints.

Start at Step 1

MODULE 01Lua basics

01Debug class for beginnersBONUSDebugging02Your first line of LuaLua core03Variables, numbers, stringsLua core04If, else, elseifLua core05Loops: for, while, when to stopLua core06FunctionsLua core07TablesLua core08Choosing a runtime: Lua, JS, or C#BONUSRuntimes

MODULE 02Your first resource

01Set up VS Code for FiveMTooling02Anatomy of a resourceSkeleton03Client, server, sharedSkeleton04Start, restart, stop: the dev loopWorkflow05Version control with GitHub DesktopBONUSTooling06Localhost to VPS with GitBONUSWorkflow07Reading and editing a script's config.luaBONUSConfig

MODULE 03Core concepts

01Two worlds, one resourceMental model02CreateThread and WaitBONUSThreading03FiveM natives: the toolboxNatives04Trust and authoritySecurity

MODULE 04Talking to the game

01TriggerEvent: same-sideEvents02TriggerServer and TriggerClientEventEvents03Latent eventsBONUSEvents04Cancelling eventsBONUSEvents05ox_lib: notifications and UIox_lib06CallbacksCallbacks07State bagsBONUSState08Built-in resources: chat, spawnmanager, baseeventsBONUSBuilt-ins

MODULE 05Data that survives a restart

01SQL from zero: oxmysqlSQL02Database with oxmysql (CRUD)SQL03Persistence: cache and write-backSQL04Persistence without a database: the KVSBONUSSQL05HeidiSQL hands-onSQL

MODULE 06Build real features

01Frameworks: QBCore, ESX and QboxFrameworks02/heal command: your first buildBuild03Teleport menu with ox_libBuild04Mini banking capstoneCapstone05Server-only banking and auditCapstone06Jobs frameworkGameplay07How scripts talk to frameworksBONUSFrameworks

MODULE 07Production patterns

01HTTP requests and webhooksHTTP02Exports across resourcesArchitecture03Promises and asyncAsync04OOP via metatablesLua05Performance and profilingPerformance06OneSync and routing bucketsNetworking07Anti-cheat patternsSecurity08Debugging like a developerDebug09Voice scripting: proximity, channels, radioBONUSVoice

MODULE 08Ship, sell, and maintain

01Paid script support workflowBONUSProduct02Release notes and semantic versioningBONUSProduct03Production code review checklistBONUSQuality04NUI accessibility and performanceBONUSNUI05Webhooks and privacyBONUSSecurity06Resource licensing and escrowBONUSBusiness07Tebex compliance and refundsBONUSBusiness

MODULE 09Migrations and identity

01Multi-character and identity systemsBONUSFrameworks02Inventory migration: QB, ESX, oxBONUSMigration03QBCore to Qbox migrationBONUSMigration