From 4d4f249ef45a7e0e07e1fc158210f84d06f570e7 Mon Sep 17 00:00:00 2001 From: YeahItsHayden Date: Thu, 9 Dec 2021 13:58:12 +1000 Subject: [PATCH] (add): Remove Print + add error trace --- client/functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/functions.lua b/client/functions.lua index a008cec..877fe94 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -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)