From 156b44a49bdf9d43bfcbc6258db81b6a638b941d Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Wed, 21 May 2025 21:04:29 +0100 Subject: [PATCH] change blipinfo stuff to jim-blipcontroller --- shared/make/makeBlip.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/shared/make/makeBlip.lua b/shared/make/makeBlip.lua index 52c9dbd..fd37024 100644 --- a/shared/make/makeBlip.lua +++ b/shared/make/makeBlip.lua @@ -54,7 +54,7 @@ function makeBlip(data) AddTextComponentString(tostring(data.name)) EndTextCommandSetBlipName(blip) -- Handle preview image if certain resources are running - if isStarted("fs_smallresources") or isStarted("blip_info") or isStarted("blipinfo") then + if isStarted("jim-blipcontroller") then if data.preview then local txname = string.gsub(tostring(data.name..'preview'..string.gsub(data.coords.z, "%.", "")), "[ ()~]", "") if data.preview:find("http") or data.preview:find("nui") then @@ -62,8 +62,11 @@ function makeBlip(data) else CreateRuntimeTextureFromImage(scriptTxd, txname, data.preview) end - exports["fs_smallresources"]:SetBlipInfoImage(blip, getScript()..'scriptTxd', txname) - exports["fs_smallresources"]:SetBlipInfoTitle(blip, data.name, false) + exports["jim-blipcontroller"]:ShowBlipInfo(blip, { + title = data.name, + dict = getScript()..'scriptTxd', + tex = txname, + }) end end end