The Lab
PED native

GET_PED_DEFENSIVE_AREA_POSITION

returns Vector32 paramsbuild 1207

Returns the center of the defensive area assigned to ped.

Signature

C
Vector3 GET_PED_DEFENSIVE_AREA_POSITION(Ped ped, BOOL p1); // 0x3C06B8786DD94CD1 b1207

Parameters

#NameType
1pedPed
2p1BOOL

Facts

Facts about GET_PED_DEFENSIVE_AREA_POSITION
Name
GET_PED_DEFENSIVE_AREA_POSITION
Hash
0x3C06B8786DD94CD1
Namespace
Returns
Vector3
Game build
1207

Examples

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

Lua
local coords = Citizen.InvokeNative(0x3C06B8786DD94CD1, -- GET_PED_DEFENSIVE_AREA_POSITION
  PlayerPedId(), -- Ped ped
  false, -- BOOL p1
  Citizen.ResultAsVector()
)
print(coords.x, coords.y, coords.z)
JavaScript
const coords = Citizen.invokeNative("0x3C06B8786DD94CD1", // GET_PED_DEFENSIVE_AREA_POSITION
  PlayerPedId(), // Ped ped
  false, // BOOL p1
  Citizen.resultAsVector()
);
const [x, y, z] = coords
C#
Vector3 coords = Function.Call<Vector3>((Hash)0x3C06B8786DD94CD1, // GET_PED_DEFENSIVE_AREA_POSITION
  API.PlayerPedId(), // Ped ped
  false // BOOL p1
);
All PED natives

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