function getPlayerProtection (client-side)
Available since version: 0.1.10
This function will get the player/npc protection.
Declaration
int|null getPlayerProtection(int id, int damageType)
Parameters
intid: the player id.intdamageType: . For more information see Damage constants.
Returns int|null
the protection value for specific damageType or null if player isn't spawned.