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
int
id: the player id.int
damageType: . For more information see Damage constants.
Returns int|null
the protection value for specific damageType or null
if player isn't spawned.