SetEntityProofs
DocsSetEntityProofs(entity, bulletProof, fireProof, explosionProof, collisionProof, meleeProof, steamProof, p7, drownProof)Description
Enable / disable each type of damage.
--------------
p7 is to to '1' in am_mp_property_ext/int: entity::set_entity_proofs(uParam0->f_19, true, true, true, true, true, true, 1, true);
Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
bulletProof | BOOL | — |
fireProof | BOOL | — |
explosionProof | BOOL | — |
collisionProof | BOOL | — |
meleeProof | BOOL | — |
steamProof | BOOL | — |
p7 | BOOL | — |
drownProof | BOOL | — |
Quick Snippet: Get Entityentity
entityUse this to obtain an entity handle from the player's aim or crosshair.
-- Get the entity the player is aiming at
local ped = PlayerPedId()
local hit, entity = GetEntityPlayerIsFreeAimingAt(PlayerId())
if hit and entity ~= 0 then
print("Entity: " .. entity)
print("Model: " .. GetEntityModel(entity))
print("Type: " .. GetEntityType(entity)) -- 1=Ped, 2=Vehicle, 3=Object
endReturns
voidThis native does not return a value.