RedM Natives

SET_ENTITY_ONLY_DAMAGED_BY_PLAYER

Hash0x473598683095D430
Runtime nameSetEntityOnlyDamagedByPlayer
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x79F020FF9EDC0748

Signature

void SET_ENTITY_ONLY_DAMAGED_BY_PLAYER(Entity entity, BOOL toggle);

Parameters

NameTypeDescription
entityEntity—
toggleBOOL—

Returns void

Usage

Lua
SetEntityOnlyDamagedByPlayer(entity, toggle)

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

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

Sources

alloc8or RDR3 NativeDB

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