(add): Remove Print + add error trace

This commit is contained in:
YeahItsHayden
2021-12-09 13:58:12 +10:00
parent b7a075127c
commit 4d4f249ef4
+2 -2
View File
@@ -61,9 +61,9 @@ function QBCore.Functions.DrawText3D(x, y, z, text)
end
function QBCore.Functions.CreateBlip(coords, sprite, display, scale, colour, shortRange, title)
print(coords, sprite, display, scale, colour, shortRange, title)
if not coords or not sprite or not display or not scale or not colour or shortRange == nil or not title then
print("Blip failed to create, most likely missed a setting")
print("Blip failed to create, most likely missed a setting, debug log: ")
print("Coords: " .. coords .. " Sprite: " .. sprite .. " Display: " .. display .. " scale: " .. scale .. " shortRange: " .. shortRange .. " Title: " .. title .. " if you're attempting to use a blip without a title, use an empty string.")
else
blip = AddBlipForCoord(coords)
SetBlipSprite(blip, sprite)