PLACE_OBJECT_ON_GROUND_PROPERLY
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
BOOL PLACE_OBJECT_ON_GROUND_PROPERLY(Object object, BOOL p1); // 0x58A850EAEE20FAA3 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | object | Object |
| 2 | p1 | BOOL |
Facts
| 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.
local result = Citizen.InvokeNative(0x58A850EAEE20FAA3, -- PLACE_OBJECT_ON_GROUND_PROPERLY
0, -- Object object
false -- BOOL p1
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x58A850EAEE20FAA3", // PLACE_OBJECT_ON_GROUND_PROPERLY
0, // Object object
false, // BOOL p1
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x58A850EAEE20FAA3, // PLACE_OBJECT_ON_GROUND_PROPERLY
0, // Object object
false // BOOL p1
);Related OBJECT natives
- SET_PICKUP_DO_NOT_AUTO_PLACE_ON_GROUND
- SET_CUSTOM_TEXTURES_ON_OBJECT
- _DAMAGE_BONE_ON_PROP
- _DAMAGE_OBJECT_FRAGMENT_BY_INDEX
- _GET_LIGHT_INTENSITY_FROM_OBJECT
- _GET_OBJECT_FRAGMENT_COUNT
- _GET_OBJECT_LIGHT_INTENSITY
- _HIDE_PICKUP_OBJECT
- _RESET_OBJECT_VELOCITY
- _SET_LIGHT_INTENSITY_FOR_OBJECT
- _SET_LIGHT_SCATTERING_DISABLED_FOR_OBJECT
- _SET_LIGHT_TRANSLUCENCY_FOR_OBJECT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.