ViRuZGamiing Posted November 4, 2013 Share Posted November 4, 2013 Hello again, I'm getting better but I want to know how I can add an Image in the left down corner. I've photoshopped a picture for HUD. What do I need? Link to comment
pa3ck Posted November 4, 2013 Share Posted November 4, 2013 dxDrawImage or guiCreateStaticImage (both of them are client side) If you go for the dxDrawImage then you will need to render it with 'onClientRender' Link to comment
ViRuZGamiing Posted November 4, 2013 Author Share Posted November 4, 2013 I've fixed it, Can I create an Image on bindKey ? I want my own Scoreboard. Link to comment
pa3ck Posted November 4, 2013 Share Posted November 4, 2013 (edited) Not with the bindKey ( you can actually, but I wouldn't use that), use onClientRender with this: if getKeyState("tab") == true then Edited November 4, 2013 by Guest Link to comment
Price. Posted November 4, 2013 Share Posted November 4, 2013 uhm to add new score board use this function() call(getResourceFromName("scoreboard"),"addScoreboardColumn","AddYourNewColoumnName") --Add it to scoreboard end ) Link to comment
ViRuZGamiing Posted November 4, 2013 Author Share Posted November 4, 2013 local playerX, playerY, playerZ = getElementPosition if getKeyState ( "tab" ) == true then function draw () dxDrawImage(4, 4, screenHeight) end function HandleTheRendering() addEventHandler("onClientRender", root, draw) end addEventHandler("onClientResourceStart", resource) How bout this? Sry i wrote this mobile but i never used dxdraw before. Link to comment
pa3ck Posted November 4, 2013 Share Posted November 4, 2013 local playerX, playerY, playerZ = getElementPosition(getLocalPlayer()) function draw() if getKeyState ( "tab" ) == true then dxDrawImage(screenX, screenY, width, height, "image_path") end end addEventHandler("onClientRender", root, draw) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now