RedM Natives

SET_ENTITY_CAN_BE_DAMAGED

Hash0x0D06D522B90E861F
Runtime nameSetEntityCanBeDamaged
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x1760FFA8AB074D66

Signature

void SET_ENTITY_CAN_BE_DAMAGED(Entity entity, BOOL toggle);

Parameters

NameTypeDescription
entityEntity—
toggleBOOL—

Returns void

Usage

Lua
SetEntityCanBeDamaged(entity, toggle)

-- always works, by hash
Citizen.InvokeNative(0x0D06D522B90E861F, entity, toggle)
JavaScript and C#
JavaScript
SetEntityCanBeDamaged(entity, toggle);

// by hash
Citizen.invokeNative('0x0D06D522B90E861F', entity, toggle);
C#
Function.Call((Hash)0x0D06D522B90E861F, entity, toggle);

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.