PLACE_ENTITY_ON_GROUND_PROPERLY
Snaps the entity onto the ground at its current position and returns true on success.
Signature
BOOL PLACE_ENTITY_ON_GROUND_PROPERLY(Entity entity, BOOL p1); // 0x9587913B9E772D29 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | p1 | BOOL |
Facts
| Name | PLACE_ENTITY_ON_GROUND_PROPERLY |
|---|---|
| Hash | 0x9587913B9E772D29 |
| 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(0x9587913B9E772D29, -- PLACE_ENTITY_ON_GROUND_PROPERLY
PlayerPedId(), -- Entity entity
false -- BOOL p1
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x9587913B9E772D29", // PLACE_ENTITY_ON_GROUND_PROPERLY
PlayerPedId(), // Entity entity
false, // BOOL p1
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x9587913B9E772D29, // PLACE_ENTITY_ON_GROUND_PROPERLY
API.PlayerPedId(), // Entity entity
false // BOOL p1
);Related ENTITY natives
- _GET_LAST_ENTITY_TO_DAMAGE_ENTITY
- _IS_ENTITY_ON_TRAIN_TRACK
- ATTACH_ENTITY_TO_ENTITY
- ATTACH_ENTITY_TO_ENTITY_PHYSICALLY
- CLEAR_ENTITY_LAST_DAMAGE_ENTITY
- GET_ENTITY_HEIGHT_ABOVE_GROUND
- GET_NEAREST_PLAYER_TO_ENTITY_ON_TEAM
- HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY
- HAS_ENTITY_CLEAR_LOS_TO_ENTITY
- HAS_ENTITY_CLEAR_LOS_TO_ENTITY_IN_FRONT
- IS_ENTITY_A_MISSION_ENTITY
- IS_ENTITY_AT_ENTITY
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.