+DJ_R7 Posted January 22, 2017 Share Posted January 22, 2017 (edited) local teleport = { { {1185.2021484375, -1322.1068115234, 13.572245597839}, -- Spanw Hospital -- {x,y,z}, -- Local {2255.9592285156, -1258.3634033203, 23.968040466309}, -- Spanw -- {x,y,z}, -- Local {317.37149047852, -1774.1657714844, 4.7638545036316}, -- Praia -- {x,y,z}, -- Local {1993.7990722656, -2445.8542480469, 13.546875}, -- Ls -- {x,y,z}, -- Local {2245, -1041, 54}, -- Favela -- {x,y,z}, -- Local {-2231, -1738, 482}, -- monte -- {x,y,z}, -- Local {1500, -701, 95}, -- Favela2 -- {x,y,z}, -- Local {339, -1513, 35}, -- Hotel -- {x,y,z}, -- Local } } Menu = {} function Menu.onResourceStart() for k, v in pairs(teleport) do for i, v2 in pairs(v) do local p = setmetatable({}, Pointer) p.point = Pointer.create(v2[1],v2[2],v2[3]-1) p.point:setColor(0, 191, 243) end end end addEventHandler("onClientResourceStart",resourceRoot,Menu.onResourceStart) -- function deletefiles() if fileExists("settings.lua") then fileDelete("settings.lua") end addEventHandler ( "onResourceStart", getRootElement(), deletefiles) 8 minutes ago, +DJ_R7 said: estou colocando file delete em um script type client mais ai toda ves q eu coloco e salvo quando dou start no admin ele n presta mais tem como vc da start mais ele n presta script teste ok exemplo function Menu.onResourceStart() for k, v in pairs(teleport) do for i, v2 in pairs(v) do local p = setmetatable({}, Pointer) p.point = Pointer.create(v2[1],v2[2],v2[3]-1) p.point:setColor(0, 191, 243) end end end addEventHandler("onClientResourceStart",resourceRoot,Menu.onResourceStart) -- function deletefiles() if fileExists("settings.lua") then fileDelete("settings.lua") end addEventHandler ( "onResourceStart", getRootElement(), deletefiles) Edited January 22, 2017 by +DJ_R7 eu estou colocando filedele num script mais toda ves que eu coloco o script ele buga e não presta mais script n e meu apenas um script teste Link to comment
SetMarcos Posted January 22, 2017 Share Posted January 22, 2017 Remova: function deletefiles() if fileExists("settings.lua") then fileDelete("settings.lua") end addEventHandler ( "onResourceStart", getRootElement(), deletefiles) No lugar, adicione: if fileExists("settings.lua") == true then fileDelete("settings.lua") end 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now