forked from Simnation/Main
Update main.lua
This commit is contained in:
parent
92b36f06c9
commit
c605e9f461
1 changed files with 3 additions and 10 deletions
|
@ -82,15 +82,8 @@ local function CreateRobberyBlip(coords)
|
||||||
|
|
||||||
containerBlip = AddBlipForCoord(coords)
|
containerBlip = AddBlipForCoord(coords)
|
||||||
|
|
||||||
-- Set blip color based on job
|
|
||||||
local playerJob = QBCore.Functions.GetPlayerData().job.name
|
SetBlipColour(containerBlip, 1)
|
||||||
if playerJob == "marshal" then
|
|
||||||
SetBlipColour(containerBlip, 38) -- Purple for Marshal
|
|
||||||
elseif playerJob == "sheriff" then
|
|
||||||
SetBlipColour(containerBlip, 16) -- Orange for Sheriff
|
|
||||||
else
|
|
||||||
SetBlipColour(containerBlip, Config.Blip.color) -- Default color for regular police
|
|
||||||
end
|
|
||||||
|
|
||||||
SetBlipSprite(containerBlip, Config.Blip.sprite)
|
SetBlipSprite(containerBlip, Config.Blip.sprite)
|
||||||
SetBlipScale(containerBlip, Config.Blip.scale)
|
SetBlipScale(containerBlip, Config.Blip.scale)
|
||||||
|
@ -104,7 +97,7 @@ local function CreateRobberyBlip(coords)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Remove blip after duration
|
-- Remove blip after duration
|
||||||
SetTimeout(Config.Blip.duration * 1000, function()
|
SetTimeout(Config.Blip.duration * 2000, function()
|
||||||
if containerBlip then
|
if containerBlip then
|
||||||
RemoveBlip(containerBlip)
|
RemoveBlip(containerBlip)
|
||||||
containerBlip = nil
|
containerBlip = nil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue