SHARE
TWEET

Untitled

kemperrs Apr 2nd, 2018 344 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const positions = [
  2.     {"position":{"x":39.3791,"y":-279.1759,"z":47.5614},"color":35},
  3.     {"position":{"x":239.3791,"y":-279.1759,"z":47.5614},"color":35},
  4.     {"position":{"x":439.3791,"y":-279.1759,"z":47.5614},"color":7},
  5.     {"position":{"x":639.3791,"y":-279.1759,"z":47.5614},"color":11},
  6.     {"position":{"x":839.3791,"y":-279.1759,"z":47.5614},"color":11},
  7.     {"position":{"x":39.3791,"y":-479.1759,"z":47.5614},"color":35},
  8.     {"position":{"x":239.3791,"y":-479.1759,"z":47.5614},"color":35},
  9.     {"position":{"x":439.3791,"y":-479.1759,"z":47.5614},"color":7},
  10.     {"position":{"x":639.3791,"y":-479.1759,"z":47.5614},"color":11},
  11.     {"position":{"x":839.3791,"y":-479.1759,"z":47.5614},"color":11},
  12.     {"position":{"x":39.3791,"y":-679.1759,"z":47.5614},"color":35},
  13.     {"position":{"x":239.3791,"y":-679.1759,"z":47.5614},"color":7},
  14.     {"position":{"x":439.3791,"y":-679.1759,"z":47.5614},"color":7},
  15.     {"position":{"x":639.3791,"y":-679.1759,"z":47.5614},"color":7},
  16.     {"position":{"x":839.3791,"y":-679.1759,"z":47.5614},"color":11},
  17.     {"position":{"x":39.3791,"y":-879.1759,"z":47.5614},"color":53},
  18.     {"position":{"x":239.3791,"y":-879.1759,"z":47.5614},"color":53},
  19.     {"position":{"x":439.3791,"y":-879.1759,"z":47.5614},"color":33},
  20.     {"position":{"x":639.3791,"y":-879.1759,"z":47.5614},"color":33},
  21.     {"position":{"x":839.3791,"y":-879.1759,"z":47.5614},"color":33},
  22.     {"position":{"x":39.3791,"y":-1079.1759,"z":47.5614},"color":53},
  23.     {"position":{"x":239.3791,"y":-1079.1759,"z":47.5614},"color":53},
  24.     {"position":{"x":439.3791,"y":-1079.1759,"z":47.5614},"color":53},
  25.     {"position":{"x":639.3791,"y":-1079.1759,"z":47.5614},"color":33},
  26.     {"position":{"x":839.3791,"y":-1079.1759,"z":47.5614},"color":33}
  27. ]
  28.  
  29. const blips = [];
  30.  
  31. positions.forEach(element => {
  32.     const blip = mp.game.ui.addBlipForRadius(element.position.x, element.position.y, element.position.z, 100);
  33.     mp.game.invoke('0x4B4040A0EC7DBA81', blip, 5);
  34.     mp.game.invoke('0xF20857E4CB32A2B7', blip, 175);
  35.     mp.game.invoke('0x0C71C8E276E3EC54', blip, element.color);
  36.     blips.push(blip);
  37. });
  38.  
  39. mp.events.add('render', () => {
  40.     if (blips.length !== 0) {
  41.         blips.forEach(blip => {
  42.             mp.game.invoke('0xE83839908A240D2E', blip, 0);
  43.         })
  44.     }
  45. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top