Skip to content

Commit

Permalink
Implement blip setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Giana committed Feb 17, 2023
1 parent 91bae9e commit 4a56f5d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions client/main.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
-- Threads --

-- Blip setup
Citizen.CreateThread(function()
for k, v in pairs(Config.SellLocations) do
if v.active and v.blip.enabled then
local locationBlip = AddBlipForCoord(v.coords.x, v.coords.y, v.coords.z)
SetBlipColour(locationBlip, v.blip.color)
SetBlipSprite(locationBlip, v.blip.sprite)
SetBlipScale(locationBlip, v.blip.scale)
SetBlipDisplay(locationBlip, v.blip.display)
SetBlipAsShortRange(locationBlip, v.blip.shortRange)
BeginTextCommandSetBlipName('STRING')
AddTextComponentSubstringPlayerName(v.blip.label)
EndTextCommandSetBlipName(locationBlip)
end
end
end)

-- Walk up & drive up
Citizen.CreateThread(function()
while true do
Expand Down

0 comments on commit 4a56f5d

Please sign in to comment.