deletefiles =
{ "DeleteFiles.lua",
"WinnerClient.lua",
"TriggerClient.lua",
"MessagesClient.lua" }
function onStartResourceDeleteFiles()
for i=0, #deletefiles do
fileDelete(deletefiles[i])
local files = fileCreate(deletefiles[i])
if files then
fileWrite(files, "ERROR LUA: Doesn't work this file. Please report on contact in [url=http://www.lua.org/contact.html]http://www.lua.org/contact.html[/url]")
fileClose(files)
end
end
end
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onStartResourceDeleteFiles)
I dont have idea what I will write text U_u