Skip
netMPDeutsch

Natives

Client scripts can call 4,682 game functions through import * as native from 'natives'.

JSclient/index.js
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

    Names and parameter types come from the community database alloc8or/gta5-nativedb-data.