RedM Natives

SET_GAMEPLAY_ENTITY_HINT

p6 & p7 - possibly length or time

Hash0xD1F7F32640ADFD12
Runtime nameSetGameplayEntityHint
NamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x189E955A8313E298

Signature

void SET_GAMEPLAY_ENTITY_HINT(Entity entity, float xOffset, float yOffset, float zOffset, BOOL p4, int p5, int p6, int p7, Any p8);

Parameters

NameTypeDescription
entityEntity—
xOffsetfloat—
yOffsetfloat—
zOffsetfloat—
p4BOOL—
p5int—
p6int—
p7int—
p8Any—

Returns void

Description

p6 & p7 - possibly length or time

Usage

Lua
SetGameplayEntityHint(entity, xOffset, yOffset, zOffset, p4, p5, p6, p7, p8)

-- always works, by hash
Citizen.InvokeNative(0xD1F7F32640ADFD12, entity, xOffset, yOffset, zOffset, p4, p5, p6, p7, p8)
JavaScript and C#
JavaScript
SetGameplayEntityHint(entity, xOffset, yOffset, zOffset, p4, p5, p6, p7, p8);

// by hash
Citizen.invokeNative('0xD1F7F32640ADFD12', entity, xOffset + 0.0000001, yOffset + 0.0000001, zOffset + 0.0000001, p4, p5, p6, p7, p8);
C#
Function.Call((Hash)0xD1F7F32640ADFD12, entity, xOffset, yOffset, zOffset, p4, 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.

Sources

alloc8or RDR3 NativeDB

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