
Natives
Client scripts can call 4,682 game functions through import * as native from 'natives'.
const pos = native.getEntityCoords(native.playerPedId(), true); // { x, y, z }
A native with pointer parameters returns an array [result, value1, ...]. Pass a start value for each of them, 0 if unused.
Not available
Scripts are sent by a server and run on the player's computer. Functions for Rockstar online services, money, statistics, achievements, save data, cloud content and game script management are not exposed, and neither are functions that take raw memory pointers.
Search all natives
Namespaces
- AUDIO280
- BRAIN11
- BUILTIN20
- CAMERA248
- CLOCK16
- CUTSCENE55
- DECORATOR12
- ENTITY190
- EVENT13
- EXTRAMETADATA33
- FIRE20
- GRAPHICS398
- GTA25
- HUD495
- INTERIOR45
- ITEMSETS9
- LOCALIZATION3
- MISC277
- OBJECT162
- PAD50
- PATH59
- PED608
- PHYSICS47
- PLAYER245
- SHAPETEST11
- STREAMING121
- TASK313
- VEHICLE773
- WATER12
- WEAPON122
- ZONE9
Names and parameter types come from the community database alloc8or/gta5-nativedb-data.