DiSiNi Posted April 29, 2020 Share Posted April 29, 2020 fix = { {1606.1678466797, -1712.462890625, 13.593994140625+1 }, {1609.2961425781, -1712.462890625, 13.593994140625+1} } JailEscapeMarker1 = createMarker(fix[math.random(#fix)], "arrow", 1.5, 255, 255, 0, 150) setElementInterior(JailEscapeMarker1, 0) setElementDimension(JailEscapeMarker1, 0) JailEscapeMarker2 = createMarker(fix[math.random(#fix)], "arrow", 1.5, 255, 0, 0, 150) setElementInterior(JailEscapeMarker2, 0) setElementDimension(JailEscapeMarker2, 0) Link to comment
Discord Moderators Zango Posted April 29, 2020 Discord Moderators Share Posted April 29, 2020 Use the <> symbol to put your code into the right format when posting You can unpack your table values into variables like this local x, y, z = unpack(fix[math.random(#fix)]) JailEscapeMarker1 = createMarker(x, y, z, "arrow", 1.5, 255, 255, 0, 150) You can also do this local randomKey = math.random(#fix) JailEscapeMarker1 = createMarker(fix[randomKey][1], fix[randomKey][2], fix[randomKey][3], "arrow", 1.5, 255, 255, 0, 150) 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