IS_ENTITY_TOUCHING_MODEL
Hash
0x2AE3EBC8DEB9768BRuntime name
IsEntityTouchingModelNamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x0F42323798A58C8CSignature
BOOL IS_ENTITY_TOUCHING_MODEL(Entity entity, Hash modelHash);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
modelHash | Hash | — |
Returns BOOL
Usage
local retval = IsEntityTouchingModel(entity, modelHash)
-- always works, by hash
local retval = Citizen.InvokeNative(0x2AE3EBC8DEB9768B, entity, modelHash, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsEntityTouchingModel(entity, modelHash);
// by hash
const retval = Citizen.invokeNative('0x2AE3EBC8DEB9768B', entity, modelHash, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x2AE3EBC8DEB9768B, entity, modelHash);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.