Kliens oldali script:
Ebben mégis mi a hiba?
lua:22: Bad argument @ \'addEventHandler\' [Expected function at argument 3, got nil]
lua:42: Bad argument @ \'addEventHandler\' [Expected function at argument 3, got nil]
addEventHandler(\"onClientResourceStart\",resourceRoot,ObjectCreate)
function ObjectCreate()
local counter = 1
for i = 1,50000 do
createObject (3334,10,10+value,10+value)
counter = counter + 1
end
outputConsole(string.format(\"%d darab object létrehozva:)\",counter),resourceRoot)
end
addEventHandler(\"onClientResourceStart\", getRootElement(),hideHUD)
function hideHUD()
showPlayerHudComponent(\"all\", false)
end