Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local fire = {
- {2422.3,-2261.6,16},
- {1758.9,-2767.9,1.7},
- {2493.3,-951.8,82.25},
- {815.7,-1108.2,25.8},
- {390.9,-2054.3,13.8},
- {-719.05,-1938.8,8.35},
- {-625.7,-2249.5,23.05},
- {-1812.3,-168.5,18.2},
- {-2659.5,1528.05,54.79},
- {-1733.76,194.75,3.6},
- {-2535.5,40.15,8.5},
- {-1804.85,558.45,35.15},
- {-752.6,-131.6,65.8},
- }
- function fireMake(theSize)
- local random = math.random ( #fire )
- if tonumber(theSize) then
- local x, y, z = fire[random][1], fire[random][2], fire[random][3]
- actualFire = createFire(x, y, z, tonumber(theSize)
- bl = createBlipAttachedTo(actualFire,57)
- outputChatBox( "A fire has started! The location of the fire has been put on your radar, extinguish it!" root, 0, 255, 0 )
- setTimer( createFire, 500, 1 )
- end
- addEventHandler("onResourceStart", resourceRoot,fireMake)
Advertisement
Add Comment
Please, Sign In to add comment