The Lab
BRAIN native

_GET_SCRIPT_BRAIN_ENTITY

returns Entity0 paramsbuild 1207

Returns the entity that the currently running brain script is attached to.

Signature

C
Entity _GET_SCRIPT_BRAIN_ENTITY(); // 0x6818D1A194E29983 b1207

Parameters

This native takes no parameters.

Facts

Facts about _GET_SCRIPT_BRAIN_ENTITY
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.

Lua
local entity = Citizen.InvokeNative(0x6818D1A194E29983, -- _GET_SCRIPT_BRAIN_ENTITY
  Citizen.ResultAsInteger()
)
print(entity)
JavaScript
const entity = Citizen.invokeNative("0x6818D1A194E29983", // _GET_SCRIPT_BRAIN_ENTITY
  Citizen.resultAsInteger()
);
console.log(entity)
C#
int entity = Function.Call<int>((Hash)0x6818D1A194E29983); // _GET_SCRIPT_BRAIN_ENTITY
All BRAIN natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.