setEntityProofs
SET_ENTITY_PROOFS0xFAEE099C6F890BB8The GTA V native SET_ENTITY_PROOFS of the ENTITY namespace, as LS:MP client scripts call it: the global function setEntityProofs, in JavaScript and in Lua.
setEntityProofs(
entity: Entity,
bulletProof: boolean,
fireProof: boolean,
explosionProof: boolean,
collisionProof: boolean,
meleeProof: boolean,
steamProof: boolean,
dontResetOnCleanup: boolean,
waterProof: boolean
): voidsetEntityProofs(
entity: Entity,
bulletProof: boolean,
fireProof: boolean,
explosionProof: boolean,
collisionProof: boolean,
meleeProof: boolean,
steamProof: boolean,
dontResetOnCleanup: boolean,
waterProof: boolean
)Usage
JavaScript
setEntityProofs(
entity, bulletProof, fireProof, explosionProof, collisionProof, meleeProof, steamProof,
dontResetOnCleanup, waterProof
);Lua
setEntityProofs(
entity, bulletProof, fireProof, explosionProof, collisionProof, meleeProof, steamProof,
dontResetOnCleanup, waterProof
)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
bulletProof | BOOL | boolean | boolean |
fireProof | BOOL | boolean | boolean |
explosionProof | BOOL | boolean | boolean |
collisionProof | BOOL | boolean | boolean |
meleeProof | BOOL | boolean | boolean |
steamProof | BOOL | boolean | boolean |
dontResetOnCleanup | BOOL | boolean | boolean |
waterProof | BOOL | boolean | boolean |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Enable / disable each type of damage.
waterProof is damage related to water not drowning
p7 is to to '1' in am_mp_property_ext/int: setEntityProofs(uParam0->f_19, true, true, true, true, true, true, 1, true);
Reference
- Namespace
- Entity ENTITY
- In the game
void SET_ENTITY_PROOFS(Entity entity, BOOL bulletProof, BOOL fireProof, BOOL explosionProof, BOOL collisionProof, BOOL meleeProof, BOOL steamProof, BOOL dontResetOnCleanup, BOOL waterProof)- Hash
0xFAEE099C6F890BB8