Envrioment:
|
Server
|
|
Function:
|
onPlayerStart
|
Added with: 2.5.0
|
|
Member Of:
|
hook
|
Syntax:
|
nothing hook.onPlayerStart(number id )
|
Description:
|
Occurs when a player has fully loaded into the simulation and can select a slot.
|
|
Return Value:
|
nothing
|
Return Actions:
|
|
|
Examples:
|
Adds a value to the clients table that was created when a player joins the server. This new value simply indicates that they have fully loaded.
clients = {}
function myCall.onPlayerStart(id)
clients[id].inSim = true
end
|
Related Functions:
|
List of Callbacks: onMissionLoadBegin, onMissionLoadProgress, onMissionLoadEnd, onSimulationStart, onSimulationStop, onSimulationFrame, onSimulationPause, onSimulationResume, onGameEvent, onNetConnect, onNetMissionChanged, onNetConnect, onNetDisconnect, onPlayerConnect, onPlayerDisconnect, onPlayerStart, onPlayerStop, onPlayerChangeSlot, onPlayerTryConnect, onPlayerTrySendChat, onPlayerTryChangeSlot
|
Notes:
|
|