while #selectedQuests[client] < math.min(6,#quests) do
local ran = math.random(1, #quests)
if not isThisQuestSelected(client, quests[ran]) then
table.insert(selectedQuests[client], quests[ran])
end
end
I think this would be better
This will loop forever if #quests < 6
while #selectedQuests[client] < 6 do
local ran = math.random(1, #quests)
if not isThisQuestSelected(client, quests[ran]) then
table.insert(selectedQuests[client], quests[ran])
end
end
MTA is probably downloading an update - It can be up to 55MB
You can check the progress in C:\ProgramData\MTA San Andreas All\1.5\upcache
(but don't delete any files in that directory otherwise the download will restart)