Advertisement
Bacon_Space

blips.lua

May 11th, 2018
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.85 KB | None | 0 0
  1. local blips = {
  2.     -- Example {title="", colour=, id=, x=, y=, z=},
  3.  
  4.        {title="Grape Seed", colour=5, id=120, x = 2176.4135742188, y = 4764.791015625, z = 40.751586914063},
  5.        {name="Hospital", id=80, x=1151.2087402344,y=-1529.8651123047,z=35.371417999268, color= 2},
  6.        {title="PaletoBay", colour=30, id=267,x= -435.38732910156, y= 6043.32421875, z= 30.943056106567}
  7. }
  8.      
  9. Citizen.CreateThread(function()
  10.  
  11.     for _, info in pairs(blips) do
  12.       info.blip = AddBlipForCoord(info.x, info.y, info.z)
  13.       SetBlipSprite(info.blip, info.id)
  14.       SetBlipDisplay(info.blip, 4)
  15.       SetBlipScale(info.blip, 1.0)
  16.       SetBlipColour(info.blip, info.colour)
  17.       SetBlipAsShortRange(info.blip, true)
  18.       BeginTextCommandSetBlipName("STRING")
  19.       AddTextComponentString(info.title)
  20.       EndTextCommandSetBlipName(info.blip)
  21.     end
  22. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement