{"hash":"0x2942457417A5FD24","ns":"PED","name":"_GET_PLAYER_PED_WATER_DEPTH","slug":"_GET_PLAYER_PED_WATER_DEPTH","official":false,"named":true,"luaName":"GetPlayerPedWaterDepth","game":"rdr3","apiset":"client","returnType":"float","params":[{"name":"ped","type":"Ped"}],"summary":"Returns how deep the water is below the ped (if in water) -1.0f = Not in water 10.0f = Max water depth","descriptions":[{"source":"alloc8or","format":"text","body":"Returns how deep the water is below the ped (if in water)\n-1.0f = Not in water\n10.0f = Max water depth"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PED/_GET_PLAYER_PED_WATER_DEPTH","markdownUrl":"https://natives.borderlinerp.com/natives/PED/_GET_PLAYER_PED_WATER_DEPTH.md","snippets":{"lua":"local retval = GetPlayerPedWaterDepth(ped)","luaInvoke":"local retval = Citizen.InvokeNative(0x2942457417A5FD24, ped, Citizen.ResultAsFloat())","js":"const retval = GetPlayerPedWaterDepth(ped);","jsInvoke":"const retval = Citizen.invokeNative('0x2942457417A5FD24', ped, Citizen.returnResultAnyway(), Citizen.resultAsFloat());","csharp":"float retval = Function.Call<float>((Hash)0x2942457417A5FD24, ped);","notes":["The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}