Wiki

Clone wiki

EFLC-MP LUA / onPlayerSpawn

Description

This function is triggered when the player respawns after dying

Parameters

Int playerId

Int playerId

Return values


Example

function myPlayerSpawn(playerid)
    print("Player " .. getPlayerName(playerid) .. "(" .. playerid .. ") respawned")
end
registerEvent("myPlayerSpawn", "onPlayerSpawn")

Updated