ViRuZGamiing Posted November 4, 2013 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?
pa3ck Posted November 4, 2013 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'
ViRuZGamiing Posted November 4, 2013 Author Posted November 4, 2013 I've fixed it, Can I create an Image on bindKey ? I want my own Scoreboard.
pa3ck Posted November 4, 2013 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
Price. Posted November 4, 2013 Posted November 4, 2013 uhm to add new score board use this function() call(getResourceFromName("scoreboard"),"addScoreboardColumn","AddYourNewColoumnName") --Add it to scoreboard end )
ViRuZGamiing Posted November 4, 2013 Author 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.
pa3ck Posted November 4, 2013 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)
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