Hi Guys, I’m looking for how to put an image to the place of a title.
Watch I have an example :
Hi Guys, I’m looking for how to put an image to the place of a title.
Watch I have an example :
I’m pretty sure you can only use default game ‘images’/logos. You can’t use custom images if that’s what you’re trying to do. As far as selecting those default game images/logos, I’m not sure on how to do that.
It depends on what menu resource you’re using - by default there’s no menus unless you write your own or use a resource.
Custom images will work by putting a custom .ytd
in stream/
, then you can use it just like the stock texture files.
not cool to say we can’t when we can… not cool
Relax, I wasn’t 100% sure if it was possible.
this doesn’t look not sure XD
but don’t worry i’m relax , look i put a smiley in my message ahahah
I agree, I should’ve been more clear.
I just confirm that
and how exactly would you make the image to ytd… just online convert it?
ytd files are like archives. Create one with OpenIV and import the picture in there.
i mean would it be possible to to it on my scoreboard, which i modified to have an image on top, but won’t load, and i entered it into the __Resource, but still won’t
local options = {
x = 0.1,
y = 0.2,
width = 0.2,
height = 0.04,
scale = 0.4,
font = 0,
menu_title = "menu",
menu_subtitle = "Menu",
color_r = 208,
color_g = 222,
color_b = 2
When I put for example “menu” and that my image is called menu.ytd except that it does not put the image to me but the normal one
@Riller0807
Is this HTML? If so, this ytd stuff won’t work.
@Flico Same for you, if it is HTML it won’t work, but if you use natives, just do it like this:
if not HasStreamedTextureDictLoaded( YTD_NAME_HERE ) then
RequestStreamedTextureDict( YTD_NAME_HERE , true)
while not HasStreamedTextureDictLoaded( YTD_NAME_HERE ) do
Citizen.Wait(0)
end
end
DrawSprite( YTD_NAME_HERE , IMAGE_NAME_HERE , ScreenX , ScreenY , WIDTH , HEIGHT , HEADING, RED , GREEN , BLUE , ALPHA )
it’s HTML and im just comfused about the tables, if it’s possible to make it as an table with text instead of image… but not that much into HTML so don’t know