Skip to main content
TRACK B · 52 CORE · 37 OPTIONAL & ADVANCED · Verified 2026

Build and sell FiveM scripts

Write FiveM scripts in Lua, from your first line to a resource you can sell.

For: You want to write scripts.You finish with: A tested, documented FiveM resource ready to release or sell.

Start at Step 1

MODULE 01Developer setup

01Start here: building FiveM scriptsStart here02Choose a runtime: Lua, JS, or C#OPTIONALRuntimes03Set up VS Code for FiveMTooling04Git and GitHub for FiveM developersTooling05Deploy changes from localhost to your serverWorkflow

MODULE 02Lua fundamentals

01Your first line of LuaFREELua core02Variables, numbers, stringsFREELua core03If, else, elseifFREELua core04Loops: for, while, when to stopFREELua core05FunctionsFREELua core06TablesFREELua core07Read errors and debug your first scriptFREEDebugging

MODULE 03Your first resource

01Anatomy of a resourceSkeleton02Client, server, sharedSkeleton03Your first FiveM script: an in-game commandLua core04Create a basic FiveM script from zeroScripting05Start, restart, stop: the dev loopWorkflow

MODULE 04FiveM fundamentals

01FiveM natives: the toolboxNatives02Players, peds, and idsMental model03Coordinates, vectors, and distanceNatives04Reading player input: controls and keysInput05Two worlds, one resourceMental model06CreateThread and WaitThreading07Trust and authoritySecurity08TriggerEvent: same-sideEvents09TriggerServer and TriggerClientEventEvents10CallbacksCallbacks11ox_lib: notifications and UIox_lib12State bags: concepts and basic usageOPTIONALState13How to use State BagsOPTIONALState14Latent eventsOPTIONALEvents15Cancelling eventsOPTIONALEvents16Built-in resources: chat, spawnmanager, baseeventsREFERENCEBuilt-ins

MODULE 05Data and persistence

01Using JSON in FiveMData02Persistence without a database: the KVSOPTIONALSQL03SQL fundamentals and your first queriesSQL04CRUD and prepared queries with oxmysqlSQL05Persistence: cache and write-backSQL

MODULE 06Framework integration

01Framework integration: QBCore, Qbox, ESXFrameworks02QBCore: how the framework worksOPTIONALFrameworks03ESX: how the framework worksOPTIONALFrameworks04Qbox: how the framework worksOPTIONALFrameworks05Multi-character and identity systemsADVANCEDFrameworks06Inventory migration: QB, ESX, oxADVANCEDMigration07QBCore to Qbox migrationADVANCEDMigration

MODULE 07Build real products

01/heal command: your first buildBuild02Jobs frameworkGameplay03Mini banking capstoneCapstone04Server-only banking and auditCapstone05Cleanup disciplineCleanup06ox_target: interact with anythingOPTIONALox_target07Spawning entities safelyOPTIONALEntities08Teleport menu with ox_libOPTIONALBuild09Player-to-player trade systemOPTIONALBuild10Player survey form with ox_libOPTIONALox_lib11Vehicles: spawn, modify, storeOPTIONALVehicles12Vehicles and garagesOPTIONALGameplay13Blips, markers, and checkpointsOPTIONALWorld14Draw on screen: text, 3D text, and markersOPTIONALWorld15Animations and scenariosOPTIONALWorld

MODULE 08Interfaces (NUI)

01Build your first NUI with HTML, CSS, and JavaScriptNUI02NUI accessibility and performanceNUI03NUI advanced: React and ViteADVANCEDNUI04Build FiveM UIs faster with fivem-ui-libOPTIONALNUI05DUI: render HTML on 3D surfacesADVANCEDNUI06Reskin a script's UI colorsOPTIONALNUI07Custom loading screen with musicOPTIONALNUI

MODULE 09Production engineering

01Exports across resourcesArchitecture02HTTP requests and webhooksHTTP03Promises and asyncAsync04Measure performance with resmon and the profilerPerformance05Optimize client, server, network, and database performancePerformance06Systematic debugging for production resourcesDebug07Anti-cheat patternsSecurity08OneSync fundamentals and entity ownershipADVANCEDNetworking09Migrating legacy resources to OneSyncADVANCEDNetworking10OOP via metatablesADVANCEDLua11Multi-threading for advanced scriptsADVANCEDPerformance12Voice scripting: proximity, channels, radioADVANCEDVoice13Setting up C# for FiveM resourcesADVANCEDScripting14Handling basics and safe editsOPTIONALHandling15Add Discord rich presence to your serverOPTIONALIntegration

MODULE 10Test and release

01Production code review checklistQuality02Release notes and semantic versioningProduct03Webhooks and privacyOPTIONALSecurity

MODULE 11Sell and support

01Resource licensing and escrowBusiness02Build and grow a trustworthy Tebex storeBusiness03Tebex compliance and refundsBusiness04Paid script support workflowProduct