playersTable = {}
function onRStart()
outputChatBox("Start", getRootElement(), 255, 255, 255, true)
timer1 = setTimer(function()
for i,v in ipairs(getElementsByType("player")) do
if getElementData(v, "playersInMission") == true then
table.insert(playersTable, v)
if #playersTable < 3 then
outputChatBox("No Players In The Mission", getRootElement(), 255, 255, 255, true)
else
outputChatBox("Have Players In The Mission", getRootElement(), 255, 255, 255, true)
end
end
end
end, 5000, 1)
end
addEventHandler("onResourceStart", resourceRoot, onRStart)
مانك متحقق من الداتا
true or false