Natives
Also called native functions, GTA natives
The built-in GTA V and Cfx.re functions scripts call to read and change the game world, such as GetEntityCoords or SetPedArmour.
Natives are the functions exposed by the game engine and by Cfx.re that resources call to do anything in the world: spawn a vehicle, move a ped, draw a marker, read a player's position. In Lua they look like ordinary functions, for example GetEntityCoords(PlayerPedId()).
There are two families. Game natives come from GTA V itself and mostly run on the client. Cfx.re natives are added by FiveM and include the server-side functions that make networked servers possible, such as reading player identifiers, managing routing buckets and working with state bags. The official native reference on the Cfx.re docs site lists both, with parameters and notes on which side each runs.
Some details that save time:
- Client vs server. Many natives only exist on one side. Calling a client native in a server script simply fails.
- Game build. Some natives and their behaviour depend on the game build the server enforces.
- Ownership. Under OneSync, changing a networked entity usually requires its owner to make the call, or a request for control first.
- Cost. Natives are not free. Calling dozens every frame in a tight loop is a common source of high client resmon.
Native names were reverse engineered by the community over many years, and some still have hash-only or placeholder names. When documentation is thin, the forum and other resources' source are often the best reference.
Related terms
Trying to get your server seen?
The live leaderboard shows what the numbers look like at the top of the list, and the upvote calculator turns a target server into a campaign size. The full glossary is here.