Jump to content

I need lots of help


Zinjaaa

Recommended Posts

local screenWidth,screenHeight = guiGetScreenSize()  -- Get screen resolution. 
function dxDraw ( ) 
 dxDrawImage ( Fill in like your requirements ) 
end 
  
function bindKey ( ) 
 bindKey ( "F7", "down", dxDraw )   -- bind the player's F7 down key 
end 

I'm still a noob but this is a bit of help I think... I don't know how to set the visibility on dxDraw's I recently learned how to make GUI's.

Link to comment
local screenWidth,screenHeight = guiGetScreenSize()  -- Get screen resolution. 
function dxDraw ( ) 
 dxDrawImage ( Fill in like your requirements ) 
end 
  
function bindKey ( ) 
 bindKey ( "F7", "down", dxDraw )   -- bind the player's F7 down key 
end 

I'm still a noob but this is a bit of help I think... I don't know how to set the visibility on dxDraw's I recently learned how to make GUI's.

dxDrawText requires "onClientRender"

The script would be:

local isPlayerViewingImage = false; 
local sx, sy = guiGetScreenSize ( ) 
function dxDrawTheImage ( ) 
    if ( isPlayerViewingImage ) then 
        dxDrawImage ( 0, 0, sx, sy, "ImagePath.png" ) 
    end 
end  
addEventHandler ( "onClientRender", root, dxDrawTheImage ) 
  
bindKey ( "F9", function ( ) 
    isPlayerViewingImage = not isPlayerViewingImage 
end ) 
  

Link to comment

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...