OnPlJoining

On player's joining

Parameters description

ParameterTypeDescription

cb

fun(source: integer)

The function that is being triggered

the source parameter in the callback function does not exist in the client side field

Example

-- Server Side
HRLib.OnPlJoining(function(source)
    print(('The player %s is now joining in the server'):format(GetPlayerName(source)))
end)

-- Client Side
HRLib.OnPlJoining(function()
    TriggerServerEvent('something')
end)

Last updated