GetPlayerEP

From CitizenMP:IV Reloaded
Jump to: navigation, search

Description:

Returns the endpoint (a string containing IP and port) for the specified player.


Parameters:

  • player - The identifier of the player to look up.


Return value:

A string, similar to:
'10.0.0.1:45341'


Example Usage:

AddEventHandler('playerActivated', function()
    local endpoint = GetPlayerEP(source)
    print('Endpoint: ' .. endpoint .. '')
end)