_GET_ENTITY_SCRIPT
Returns the hash of the script that owns the entity.
Signature
Hash _GET_ENTITY_SCRIPT(Entity entity, Any* argStruct); // 0x2A08A32B6D49906F b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | argStruct | Any* (out pointer) |
Facts
| Name | _GET_ENTITY_SCRIPT |
|---|---|
| Hash | 0x2A08A32B6D49906F |
| Namespace | |
| Returns | Hash |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local hash, argStruct = Citizen.InvokeNative(0x2A08A32B6D49906F, -- _GET_ENTITY_SCRIPT
PlayerPedId(), -- Entity entity
Citizen.PointerValueInt(), -- Any* argStruct
Citizen.ResultAsInteger()
)
print(hash, argStruct)const [hash, argStruct] = Citizen.invokeNative("0x2A08A32B6D49906F", // _GET_ENTITY_SCRIPT
PlayerPedId(), // Entity entity
Citizen.pointerValueInt(), // Any* argStruct
Citizen.resultAsInteger()
);
console.log(hash, argStruct)var argStructArg = new OutputArgument();
int hash = Function.Call<int>((Hash)0x2A08A32B6D49906F, // _GET_ENTITY_SCRIPT
API.PlayerPedId(), // Entity entity
argStructArg // Any* argStruct
);
int argStruct = argStructArg.GetResult<int>();Related ENTITY natives
- _GET_LAST_ENTITY_TO_DAMAGE_ENTITY
- _GET_SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT
- _GET_ENTITY_ALBEDO
- _GET_ENTITY_ANIM_CURRENT_TIME
- _GET_ENTITY_BY_DOORHASH
- _GET_ENTITY_CAN_BE_DAMAGED
- _GET_ENTITY_CARRY_CONFIG
- _GET_ENTITY_CARRYING_FLAG
- _GET_ENTITY_COLLISION_INTENSITY
- _GET_ENTITY_FORWARD_VECTOR_YX
- _GET_ENTITY_HEALTH_FLOAT
- _GET_ENTITY_PROOFS
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.