Tox Posted August 31, 2015 Share Posted August 31, 2015 I used gui editor and the sample on wiki, didn't work. Code is below function IPind() local screenW, screenH = guiGetScreenSize( ) dxDrawText("tobeadded", (screenW * 0.0069) - 1, (screenH * 0.9356) - 1, (screenW * 0.2326) - 1, (screenH * 0.9789) - 1, tocolor(0, 0, 0, 255), 1.85, "pricedown", "left", "top", false, false, true, true, false) dxDrawText("tobeadded", (screenW * 0.0069) + 1, (screenH * 0.9356) - 1, (screenW * 0.2326) + 1, (screenH * 0.9789) - 1, tocolor(0, 0, 0, 255), 1.85, "pricedown", "left", "top", false, false, true, true, false) dxDrawText("tobeadded", (screenW * 0.0069) - 1, (screenH * 0.9356) + 1, (screenW * 0.2326) - 1, (screenH * 0.9789) + 1, tocolor(0, 0, 0, 255), 1.85, "pricedown", "left", "top", false, false, true, true, false) dxDrawText("tobeadded", (screenW * 0.0069) + 1, (screenH * 0.9356) + 1, (screenW * 0.2326) + 1, (screenH * 0.9789) + 1, tocolor(0, 0, 0, 255), 1.85, "pricedown", "left", "top", false, false, true, true, false) dxDrawText("tobeadded", screenW * 0.0069, screenH * 0.9356, screenW * 0.2326, screenH * 0.9789, tocolor(210, 210, 210, 255), 1.85, "pricedown", "left", "top", false, false, true, true, false) end function HandleTheRendering ( ) addEventHandler ( "onClientRender", getRootElement(), IPind ) -- keep the text visible with onClientRender. end addEventHandler ( "onClientResourceStart", resourceRoot, HandleTheRendering ) Link to comment
Noki Posted August 31, 2015 Share Posted August 31, 2015 I don't see any syntax errors. Make sure that your meta file declares the script is client-side. Link to comment
Tox Posted August 31, 2015 Author Share Posted August 31, 2015 I don't see any syntax errors. Make sure that your meta file declares the script is client-side. god, I am always getting my ass kicked by that fault... Thank you mate it worked 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