Jump to content

random markers error urGENT !


Deepu

Recommended Posts

PLEASE its urgent and I need help with the script of my bomber job

its as follows:

the markers wont spawn and no errors

yeah but it says table generator is absent

function accept () 
   if source == taker then 
   triggerServerEvent("onKakka", thePlayer, "yo") 
    
   local bombMarkers = { 
      {1173.9000244141, -1355.0999755859, 12.89999961853, "cylinder", 1, 255, 2, 0}, 
      {891.79998779297  , -1251.0999755859 , 14.89999961853, "cylinder", 1, 255, 2, 0}, 
      {2659.6999511719  , -1438.5 , 29.5, "cylinder", 1, 255, 2, 0}, 
      {1390.6473388672 , -1567.6746826172 , 12.604599952698, "cylinder", 1, 255, 2, 0}, 
      {1215.8259277344 , -1667.3760986328 , 10.77110004425, "cylinder", 1, 255, 2, 0}, 
      {1103.1510009766 , -1452.7386474609 , 14.775799751282, "cylinder", 1, 255, 2, 0}, 
      {1802.6999511719 , -1286.9000244141 , 12.60000038147, "cylinder", 1, 255, 2, 0}, 
      {2668.6999511719 , -1766.9000244141 , 10.89999961853, "cylinder", 1, 255, 2, 0}, 
      {2200.1999511719 , -2222.1999511719 , 14.199999809265, "cylinder", 1, 255, 2, 0}, 
      {1109.0999755859 , -1791.8000488281 , 15.60000038147, "cylinder", 1, 255, 2, 0}, 
   } 
   for markerid,_ in ipairs do 
    local ran = math.random(#bombMarkers) 
      reach = createMarker(bombMarkers[ran][1], bombMarkers[ran][2], bombMarkers[ran][3]) 
   guiSetVisible(jobWindow, false) 
   showCursor(false) 
   end 
   end 
 end 
 addEventHandler("onClientGUIClick", getRootElement(), accept) 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...