_GET_SCRIPT_BRAIN_ENTITY
Returns the entity that the currently running brain script is attached to.
Signature
Entity _GET_SCRIPT_BRAIN_ENTITY(); // 0x6818D1A194E29983 b1207Parameters
This native takes no parameters.
Facts
| Name | _GET_SCRIPT_BRAIN_ENTITY |
|---|---|
| Hash | 0x6818D1A194E29983 |
| Namespace | |
| Returns | Entity |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local entity = Citizen.InvokeNative(0x6818D1A194E29983, -- _GET_SCRIPT_BRAIN_ENTITY
Citizen.ResultAsInteger()
)
print(entity)const entity = Citizen.invokeNative("0x6818D1A194E29983", // _GET_SCRIPT_BRAIN_ENTITY
Citizen.resultAsInteger()
);
console.log(entity)int entity = Function.Call<int>((Hash)0x6818D1A194E29983); // _GET_SCRIPT_BRAIN_ENTITYRelated BRAIN natives
- _REMOVE_SCRIPT_BRAIN_ENTITY
- _START_PRELOADED_SCRIPT_BRAIN
- _START_SCRIPT_BRAIN
- DISABLE_SCRIPT_BRAIN_SET
- ENABLE_SCRIPT_BRAIN_SET
- REGISTER_OBJECT_SCRIPT_BRAIN
- _0x4AA5EA1EDFB25786
- _0xA6AC35DB4A7957A8
- REACTIVATE_ALL_OBJECT_BRAINS_THAT_ARE_WAITING_TILL_OUT_OF_RANGE
- REACTIVATE_NAMED_OBJECT_BRAINS_WAITING_TILL_OUT_OF_RANGE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.