IS_ENTITY_A_GHOST
Returns true if the entity is ghosted.
Signature
BOOL IS_ENTITY_A_GHOST(Entity entity); // 0x21D04D7BC538C146 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
Facts
| Name | IS_ENTITY_A_GHOST |
|---|---|
| Hash | 0x21D04D7BC538C146 |
| 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(0x21D04D7BC538C146, -- IS_ENTITY_A_GHOST
PlayerPedId() -- Entity entity
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x21D04D7BC538C146", // IS_ENTITY_A_GHOST
PlayerPedId(), // Entity entity
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x21D04D7BC538C146, // IS_ENTITY_A_GHOST
API.PlayerPedId() // Entity entity
);Related NETWORK natives
- NETWORK_GET_ENTITY_IS_NETWORKED
- NETWORK_IS_PLAYER_A_PARTICIPANT
- NETWORK_IS_PLAYER_A_PARTICIPANT_ON_SCRIPT
- IS_DAMAGE_TRACKER_ACTIVE_ON_NETWORK_ID
- IS_NETWORK_ID_OWNED_BY_PARTICIPANT
- IS_OBJECT_REASSIGNMENT_IN_PROGRESS
- IS_SPHERE_VISIBLE_TO_ANOTHER_MACHINE
- IS_SPHERE_VISIBLE_TO_PLAYER
- IS_TIME_LESS_THAN
- IS_TIME_MORE_THAN
- _COMMERCE_STORE_IS_ENABLED
- _COMMERCE_STORE_IS_OPEN
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.