<!-- fivemad.com, Markdown source of https://fivemad.com/docs/videos/lua-scripting-basics -->
> Source: https://fivemad.com/docs/videos/lua-scripting-basics
> Section: Video tutorials
> Level: Beginner
> Site map for assistants: https://fivemad.com/llms.txt

# Lua scripting for FiveM: the basics

Write your first resources: editor setup, the manifest, commands, natives, client and server events, callbacks and threads.

10 videos, 2 h 55 min in total. The videos are on YouTube and are not ours.

## Lessons

1. [How to start CODING in FIVEM | Update (2026 Free)](https://www.youtube.com/watch?v=Tsk1-tKgMH0) by TraseDev (26:36)
   A long, recent introduction to coding for FiveM: what you need, how resources work and your first lines of Lua.
2. [Setting up VSCode for FiveM Lua Development (Zero to Hero Episode 9)](https://www.youtube.com/watch?v=JOnYzPzrzXI) by CharlesHacks (11:22)
   Setting up VS Code with the Lua language server and FiveM native declarations, so you get autocomplete and error hints.
3. [Getting Started With Lua FiveM Scripting (Zero to Hero Episode 2)](https://www.youtube.com/watch?v=SfDxF-tkkKs) by CharlesHacks (13:46)
   The Lua basics you need for FiveM: variables, functions, tables and how a resource is laid out.
4. [FiveM Scripting - Creating Your First Script](https://www.youtube.com/watch?v=dkqbgV2KUKw) by Twisle (9:04)
   Creating a first resource and running it on a server, clear and short.
5. [FiveM Lua Scripting Commands and Natives (Zero to Hero Episode 3)](https://www.youtube.com/watch?v=CDzz67tp8FU) by CharlesHacks (18:04)
   Registering commands and calling game natives, with practical examples.
6. [FiveM Scripting - Client & Server Events](https://www.youtube.com/watch?v=bfQ9-17zTdY) by Twisle (10:10)
   How client and server scripts talk through events, explained plainly.
7. [FiveM Lua Scripting Network Events (Zero to Hero Episode 4)](https://www.youtube.com/watch?v=6-M5o_wiQP0) by CharlesHacks (18:33)
   Network events in more depth: TriggerServerEvent, TriggerClientEvent and passing data safely.
8. [FiveM Scripting - NetEvents And Callbacks](https://www.youtube.com/watch?v=xPpucny6Yqg) by Twisle (16:31)
   Net events and callbacks: getting an answer back from the server.
9. [FiveM Lua Scripting Threads and Controls (Zero to Hero Episode 5)](https://www.youtube.com/watch?v=9Mg-AO-YtUA) by CharlesHacks (18:16)
   Threads, Wait and key controls, and how to keep loops from hurting performance.
10. [FiveM Scripting - Coding Principles](https://www.youtube.com/watch?v=tYQeKyiwgak) by Twisle (32:28)
   Coding principles for FiveM scripts: structure, naming and habits that keep resources maintainable.
