The Lab
PED native

_GET_PED_ATTITUDE

returns int2 paramsbuild 1207

Returns the attitude of ped towards player.

Signature

C
int _GET_PED_ATTITUDE(Ped ped, Player player); // 0x7CC2186C32D3540A b1207

Parameters

#NameType
1pedPed
2playerPlayer

Facts

Facts about _GET_PED_ATTITUDE
Name
_GET_PED_ATTITUDE
Hash
0x7CC2186C32D3540A
Namespace
Returns
int
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x7CC2186C32D3540A, -- _GET_PED_ATTITUDE
  PlayerPedId(), -- Ped ped
  PlayerId(), -- Player player
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x7CC2186C32D3540A", // _GET_PED_ATTITUDE
  PlayerPedId(), // Ped ped
  PlayerId(), // Player player
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x7CC2186C32D3540A, // _GET_PED_ATTITUDE
  API.PlayerPedId(), // Ped ped
  API.PlayerId() // Player player
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.