The Lab
OBJECT native

PLACE_OBJECT_ON_GROUND_PROPERLY

returns BOOL2 paramsbuild 1207

Snaps the object onto the ground at its current position and returns true on success.

Call it after creating a prop so it does not float or sink.

Signature

C
BOOL PLACE_OBJECT_ON_GROUND_PROPERLY(Object object, BOOL p1); // 0x58A850EAEE20FAA3 b1207

Parameters

#NameType
1objectObject
2p1BOOL

Facts

Facts about PLACE_OBJECT_ON_GROUND_PROPERLY
Name
PLACE_OBJECT_ON_GROUND_PROPERLY
Hash
0x58A850EAEE20FAA3
Namespace
Returns
BOOL
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(0x58A850EAEE20FAA3, -- PLACE_OBJECT_ON_GROUND_PROPERLY
  0, -- Object object
  false -- BOOL p1
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x58A850EAEE20FAA3", // PLACE_OBJECT_ON_GROUND_PROPERLY
  0, // Object object
  false, // BOOL p1
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x58A850EAEE20FAA3, // PLACE_OBJECT_ON_GROUND_PROPERLY
  0, // Object object
  false // BOOL p1
);
All OBJECT natives

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