Aimcac

Untitled

Aug 26th, 2015
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. local fire = {
  2. {2422.3,-2261.6,16},
  3. {1758.9,-2767.9,1.7},
  4. {2493.3,-951.8,82.25},
  5. {815.7,-1108.2,25.8},
  6. {390.9,-2054.3,13.8},
  7. {-719.05,-1938.8,8.35},
  8. {-625.7,-2249.5,23.05},
  9. {-1812.3,-168.5,18.2},
  10. {-2659.5,1528.05,54.79},
  11. {-1733.76,194.75,3.6},
  12. {-2535.5,40.15,8.5},
  13. {-1804.85,558.45,35.15},
  14. {-752.6,-131.6,65.8},
  15. }
  16.  
  17. function fireMake(theSize)
  18. local random = math.random ( #fire )
  19. if tonumber(theSize) then
  20. local x, y, z = fire[random][1], fire[random][2], fire[random][3]
  21. actualFire = createFire(x, y, z, tonumber(theSize)
  22. bl = createBlipAttachedTo(actualFire,57)
  23. outputChatBox( "A fire has started! The location of the fire has been put on your radar, extinguish it!" root, 0, 255, 0 )
  24. setTimer( createFire, 500, 1 )
  25. end
  26. addEventHandler("onResourceStart", resourceRoot,fireMake)
Advertisement
Add Comment
Please, Sign In to add comment