Best-Killer Posted November 2, 2016 Share Posted November 2, 2016 local shootingRangeLocations = { {138.43, -67.37, 1.57, 0, 0}, {137.37, -69.13, 1.43, 0, 0}, {137.37, -69.13, 1.43, 0, 0}, {137.37, -69.13, 1.43, 0, 0}, {138.43, -67.37, 1.57, 0, 0}, {138.43, -67.37, 1.57, 0, 0}, {138.43, -67.37, 1.57, 0, 0}, {138.43, -67.37, 1.57, 0, 0} } local invalidWeaponTypes = {[0] = true, [1] = true, [8] = true, [9] = true, [10] = true, [11] = true, [12] = true, [6] = true} addEventHandler("onResourceStart", resourceRoot, function () for i,v in pairs(shootingRangeLocations) do local marker = createMarker(tostring(v[1]), tostring(v[2]), tostring(v[3]), "cylinder", 1.2, 255, 255, 255, 0) if marker then setElementInterior(marker, tonumber(v[4])) setElementDimension(marker, tonumber(v[5])) addEventHandler("onMarkerHit", marker, onMarkerHit) end end end) 0 errors but no markers what is the problem ? Link to comment
iPrestege Posted November 2, 2016 Share Posted November 2, 2016 (edited) remove tostring and tonumber . and use ipairs instead of pairs. Edited November 2, 2016 by FaHaD Link to comment
Best-Killer Posted November 2, 2016 Author Share Posted November 2, 2016 if you helped me here : i'll not forget that help forever pls pls really i need finish my work on it 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