@mikou thank you sir.
if find image .ytd files with openIV can we stream images !
You can use any texture dictionary, including custom image dictionaries streamed from a resource.
you have any example code for newbies? for : (You can use any texture dictionary, including custom image dictionaries streamed from a resource.)
Use the search function ,you can find how to do it on the forum.
Can u help me please? @mikou image error :S
my code:
RequestStreamedTextureDict("patates",1)
while not HasStreamedTextureDictLoaded("patates") do
Wait(1)
end
exports['blip_info']:SetBlipInfoImage(blip,"patates","patates")
my ytd: patates.ytd (2.0 MB)
my ytd directory: C:\Server\resources\streams\stream\img
RequestStreamedTextureDict("name of the dictionnary",1)
while not HasStreamedTextureDictLoaded("name of the dictionnary") do
Wait(1)
end
exports['blip_info']:SetBlipInfoImage(blip,"name of the dictionnary","name of texture")
you need to know the exact name of the texture that you need in the ytd file.
good job
Added an example to the OP.
Had somebody ask me over DMs how to set this all up, so I figured Iād release a sample resource that shows how itās used.
Hey, I noticed that you have custom blips in some of the screenshots, would you be kind enough to share how you actually done that? Of course if you wish to do so
Thanks
There any why to change the blip name on this script? (Change this > http://prntscr.com/o2kmx2)
Is there a way to stop the blips from extending the range of the minimap box?
I can see the blips on my minimap anywhere on the map.
Apart from that very nice work.
EDIT - Answered my own question lol, add the below line to world_blips\client.lua
SetBlipAsShortRange(blip, true)
This dont work , I am trying to put a blip that has many ids that define the coordinates in the config
Citizen.CreateThread(function()
RequestStreamedTextureDict("world_blips", 1)
while not HasStreamedTextureDictLoaded("world_blips") do
Wait(0)
end
for i=1, #Config.Locations do
local blip = Config.Locations[i]["blip"]
if blip then
if not DoesBlipExist(blip["id"]) then
blip["id"] = AddBlipForCoord(blip["x"], blip["y"], blip["z"])
SetBlipSprite(blip["id"], 52)
SetBlipDisplay(blip["id"], 4)
SetBlipScale(blip["id"], 1.5)
SetBlipColour(blip["id"], 25)
SetBlipAsShortRange(blip["id"], true)
exports['blip_info']:SetBlipInfoTitle(blip["id"], "Badulake", true)
exports['blip_info']:SetBlipInfoImage(blip["id"], "world_blips", "badulake")
exports['blip_info']:AddBlipInfoText(blip["id"], "Tiendas de comida y cosas variadas.")
BeginTextCommandSetBlipName("shopblip")
AddTextEntry("shopblip", "Shop")
EndTextCommandSetBlipName(blip["id"])
end
end
end
end)
is there any way to make the blip information updated?