ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. isPedDamageProof

Function

isPedDamageProof

Server and clientPedsTrilogy Hub only

Checks whether a player or an NPC is damage proof (setPedDamageProof).

Syntax

bool isPedDamageProof(ped thePed)

Arguments

thePedped
A player or an NPC.

Returns

true when damage proof.

Example

if isPedDamageProof(localPlayer) then dxDrawText("OCHRONA", 20, 300) end

See also