RedM Natives

START_PLAYER_TELEPORT

Hash0xDF8822C55EDDA65B
Runtime nameStartPlayerTeleport
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xAD15F075A4DA0FDE

Signature

void START_PLAYER_TELEPORT(Player player, float x, float y, float z, float heading, BOOL p5, BOOL p6, BOOL p7, BOOL p8);

Parameters

NameTypeDescription
playerPlayer—
xfloat—
yfloat—
zfloat—
headingfloat—
p5BOOL—
p6BOOL—
p7BOOL—
p8BOOL—

Returns void

Usage

Lua
StartPlayerTeleport(player, x, y, z, heading, p5, p6, p7, p8)

-- always works, by hash
Citizen.InvokeNative(0xDF8822C55EDDA65B, player, x, y, z, heading, p5, p6, p7, p8)
JavaScript and C#
JavaScript
StartPlayerTeleport(player, x, y, z, heading, p5, p6, p7, p8);

// by hash
Citizen.invokeNative('0xDF8822C55EDDA65B', player, x + 0.0000001, y + 0.0000001, z + 0.0000001, heading + 0.0000001, p5, p6, p7, p8);
C#
Function.Call((Hash)0xDF8822C55EDDA65B, player, x, y, z, heading, p5, p6, p7, p8);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.