Skip to content

function getPlayerWaterLevel (client-side)

Available since version: 0.3.0

This function will get player water level.

Declaration

int getPlayerWaterLevel(int id)

Parameters

  • int id: the player id.

Returns int

current water level; 0 = outside water, 1 = walking in water, 2 = swimming.