START HERE·ORIENTATION·Verified June 2026 · Lua 5.4 · ox_lib 3.x
Learning with an AI assistant?
Copies this whole lesson - every step, code block, and the exact console errors - plus 2026 ground rules (no lua54 'yes', Cfx.re Portal, correct callback signatures) as a ready-to-paste mentor prompt.
Start Here · Orientation

What is FiveM

Before you write a single line of code, you need a clear mental picture of what FiveM is and where your work will live inside it. This is the first lesson of the whole section, so we start at zero. By the end you will be able to explain FiveM to a friend in one sentence, and you will know exactly which part of the system you are about to learn to control.

You'll learn
What FiveM actually is, why it exists, how the pieces fit together, and what you can build with it
Time
~10 minutes
Difficulty
Beginner
You need
Nothing, just read along
BEFORE YOU START

What FiveM is

FiveM is a modification for the video game Grand Theft Auto V. A modification, usually shortened to "mod", is software that changes or extends a game beyond what the people who made it shipped. FiveM does not replace GTA V. It sits on top of it.

Here is the key idea. You keep the entire base game you already own, the graphics, the physics, and the giant city of Los Santos. What FiveM changes is where you connect. Instead of joining Rockstar's official GTA Online servers, you connect to a server run by a community, a creator, or eventually you.

Each FiveM server runs its own custom code, so each one feels like a different game built on the same city. One server might be a serious cops-and-criminals world. Another might be a racing league. The base game is the same. The rules layered on top are what differ.

Vocabulary

FiveM
A modification for GTA V that lets people run and join custom multiplayer servers with their own rules, jobs, vehicles, and scripts.
Server
A computer that runs the game world and decides what is true in it. Players connect to a server to play together. You will eventually run one of these.
Resource
A folder of code and assets that adds one feature to a server, like a job, a shop, or a menu. A server is just a stack of resources running together. You will build these.
Roleplay (RP)
A style of play where each person acts out a character, like a police officer or a mechanic, instead of just running around. Most popular FiveM servers are roleplay servers.

Why it exists

GTA Online, the official multiplayer mode that ships with the game, is closed. You play by Rockstar's rules and you cannot change them. You cannot add cops that actually arrest people, real jobs like mechanic or paramedic, a custom economy, or your own roleplay rules. The systems are locked.

FiveM exists to open that up. It does so with one clever move: it splits the game into two layers.

  • The base game. This is GTA V on your hard drive. It owns the graphics, the physics, the city, and the engine that draws everything on screen.
  • The server layer. This is the part FiveM adds. It runs custom code that tells the game what to do, like "spawn this car here" or "give this player a job."

The server makes the decisions. The game draws the result. That single split is the reason FiveM can build experiences Rockstar never shipped.

If you have heard of "GTA RP", watched streamers play as cops and criminals in a custom city, or heard the name NoPixel, you have already seen FiveM. Those are FiveM roleplay servers. The thing that made them possible is exactly the split above.

How it fits together

When you play on a FiveM server, two machines are doing two different jobs at the same time. Your own computer draws the world. The server decides what is in it. They talk to each other constantly over the internet.

Here is the shape of it.

text
  YOUR COMPUTER                                THE SERVER
  ┌────────────────────┐                       ┌────────────────────┐
  │  FiveM client      │  ── you connect ──►   │  FiveM server      │
  │       │            │                       │       │            │
  │       ▼            │   ◄── decisions ───   │       ▼            │
  │  GTA V engine      │                       │  your code         │
  │  (draws the world) │                       │  + a database      │
  └────────────────────┘                       └────────────────────┘
        renders                                      decides

Read it like this. Your computer runs the FiveM client, the program you launch to join servers, and the client feeds the GTA V engine, which renders the world you see. The server runs your code plus a database, which is just an organized store of saved information like player money and inventory. The server decides what is true, such as how much cash you have, and tells your computer what to draw. The game renders it. You see it. That loop repeats many times per second.

The reason this matters for you as a future developer is simple. The server is the source of truth, and your most important code will live there. We go deeper on this loop in the next lesson.

What you can actually build

Because you control the server layer, you control almost everything about how a server plays. These are real, common things FiveM creators build:

  • Jobs that pay players for doing work, like police, mechanic, taxi, or delivery.
  • Custom vehicles with their own handling, looks, and spawn rules.
  • Menus and interfaces, like a phone, a HUD, or an inventory screen.
  • Economies, where money, items, and businesses are saved and tracked over time.
  • Custom maps, adding new buildings, interiors, and locations to the city.

These are not separate downloads stitched together by magic. Each one is a resource, the folder of code you met earlier. A full server is just many resources running at once. Learning to build one resource is learning to build all of this.

Common beginner misconceptions

A few ideas trip up almost every beginner. Clearing them now saves you confusion later.

In one sentence, what is FiveM?

FiveM is a modification for GTA V that lets people run and join custom multiplayer servers, where each server runs its own code on top of the base game to create its own rules, jobs, and worlds.

Try it yourself

What you can do now

  • Explain in one sentence what FiveM is and how it relates to GTA V.
  • Describe the two layers, the base game that renders and the server layer that decides.
  • Define the four core terms: FiveM, server, resource, and roleplay.
  • Name real features you can build, like jobs, vehicles, menus, economies, and maps.
  • Correct the two big myths: FiveM still needs GTA V, and you do not need to be a pro coder to start.

You now have the map. Next you will learn how FiveM actually works under the hood, following a single action from your keyboard, to the server, and back onto your screen. That is the next lesson, "How FiveM actually works."