Ty i didnt see my mistake !
Im a bit confused about the event "onPlayerReady" that you talk about, i can't find anything about it in the wiki. Though i did try to follow your instructions
server side
function setTimeOnJoin()
timehour, timeminute = getTime()
triggerClientEvent(source, "eventSetTimeOnJoin", source,timehour,timeminute)
end
-- addEventHandler ( "onPlayerJoin", getRootElement(), setTimeOnJoin )
addEvent( "playerIsReady", true )
addEventHandler( "playerIsReady", getRootElement(), setTimeOnJoin )
Client side
function setTimeClientSide (timehour,timeminute)
setTime(timehour,timeminute)
end
addEvent( "eventSetTimeOnJoin", true )
addEventHandler( "eventSetTimeOnJoin", localPlayer, setTimeClientSide )
addEventHandler("onPlayerReady", localPlayer, function()
triggerServerEvent("playerIsReady", localPlayer)
end)