{"hash":"0xFF1290D4","ns":"CFX","name":"GET_PLAYER_PING","slug":"GET_PLAYER_PING","official":true,"named":true,"luaName":"GetPlayerPing","game":"cfx","apiset":"server","returnType":"int","params":[{"name":"playerSrc","type":"char*"}],"returnsDescription":"Returns the mean amount of time a packet takes to get to the client","summary":"","descriptions":[{"source":"cfx","format":"md","body":"See [GET_PLAYER_PEER_STATISTICS](#\\_0x9A928294) if you want more detailed information, like packet loss, and packet/rtt variance"}],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/GET_PLAYER_PING","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/GET_PLAYER_PING.md","snippets":{"lua":"local retval = GetPlayerPing(playerSrc)","luaInvoke":"local retval = Citizen.InvokeNative(0xff1290d4, playerSrc, Citizen.ResultAsInteger())","js":"const retval = GetPlayerPing(playerSrc);","jsInvoke":"const retval = Citizen.invokeNative('0xff1290d4', playerSrc, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0xff1290d4, playerSrc);","notes":[]}}