The Lab
COLLECTABLE native

_COLLECTABLE_GET_PLACEMENT_LOCATION

returns Vector31 parambuild 1207

Returns the world location where the collectable item is placed.

Signature

C
Vector3 _COLLECTABLE_GET_PLACEMENT_LOCATION(Hash collectableItem); // 0x1F1DD794908C2BFA b1207

Parameters

#NameType
1collectableItemHash

Facts

Facts about _COLLECTABLE_GET_PLACEMENT_LOCATION
Name
_COLLECTABLE_GET_PLACEMENT_LOCATION
Hash
0x1F1DD794908C2BFA
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(0x1F1DD794908C2BFA, -- _COLLECTABLE_GET_PLACEMENT_LOCATION
  GetHashKey("name"), -- Hash collectableItem
  Citizen.ResultAsVector()
)
print(coords.x, coords.y, coords.z)
JavaScript
const coords = Citizen.invokeNative("0x1F1DD794908C2BFA", // _COLLECTABLE_GET_PLACEMENT_LOCATION
  GetHashKey("name"), // Hash collectableItem
  Citizen.resultAsVector()
);
const [x, y, z] = coords
C#
Vector3 coords = Function.Call<Vector3>((Hash)0x1F1DD794908C2BFA, // _COLLECTABLE_GET_PLACEMENT_LOCATION
  (uint)API.GetHashKey("name") // Hash collectableItem
);
All COLLECTABLE natives

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