Jump to content

StaticImage help


Recommended Posts

Posted

If you've got the code then you have to move the guiCreateStaticImage above the code where you draw text or use guiMoveToBack/guiBringToFront. If you're drawing text with DX functions then make sure that parameter postGUI is set to false.

Posted

this is the dxText, where i should put false?

timepassed = dxText:create('0:00:00', screenWidth/2+22.5, 27, false, 'default-bold', 1, 'right') 

the guiMoveToBack and guiBringToFront didn't work :(

Posted
this is the dxText, where i should put false?
timepassed = dxText:create('0:00:00', screenWidth/2+22.5, 27, false, 'default-bold', 1, 'right') 

the guiMoveToBack and guiBringToFront didn't work :(

That is a DirectX functions-based lib so GUI functions obviously won't work. You need to edit the "textlib.lua" file in the 'race' resource.

Posted

Draws an image on the screen for a single frame. In order for the image to stay visible continuously, you need to call this function with the same parameters on each frame update (see onClientRender).

Image files should ideally have dimensions that are a power of two, to prevent possible blurring.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...