blip tweak
This commit is contained in:
1 parent
972399ebf6
commit
defc7c0e8b
1 file changed
+4
-4
@@ -126,7 +126,7 @@ function Utility.CreateBlip(coords, sprite, color, scale, label, shortRange, dis
|
|||||||
AddTextEntry(label, label)
|
AddTextEntry(label, label)
|
||||||
BeginTextCommandSetBlipName(label)
|
BeginTextCommandSetBlipName(label)
|
||||||
EndTextCommandSetBlipName(blip)
|
EndTextCommandSetBlipName(blip)
|
||||||
blipIDs[tostring(blip)] = true
|
blipIDs[tostring(blip)] = blip
|
||||||
return blip
|
return blip
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -150,7 +150,7 @@ function Utility.CreateEntityBlip(entity, sprite, color, scale, label, shortRang
|
|||||||
AddTextEntry(label, label)
|
AddTextEntry(label, label)
|
||||||
BeginTextCommandSetBlipName(label)
|
BeginTextCommandSetBlipName(label)
|
||||||
EndTextCommandSetBlipName(blip)
|
EndTextCommandSetBlipName(blip)
|
||||||
blipIDs[tostring(blip)] = true
|
blipIDs[tostring(blip)] = blip
|
||||||
return blip
|
return blip
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -158,8 +158,8 @@ end
|
|||||||
---@param blip number
|
---@param blip number
|
||||||
---@return boolean
|
---@return boolean
|
||||||
function Utility.RemoveBlip(blip)
|
function Utility.RemoveBlip(blip)
|
||||||
if not blipIDs[tostring(blip)] then return false end
|
if not blipIDs[tostring(blip)] then return false, print("NO BLIP BY ID") end
|
||||||
RemoveBlip(blip)
|
RemoveBlip(blipIDs[tostring(blip)])
|
||||||
blipIDs[tostring(blip)] = nil
|
blipIDs[tostring(blip)] = nil
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user