TheSmart Posted August 10, 2015 Posted August 10, 2015 Hey Guys! i was trying to show images after when player login but idk why that not working no error in debugscript 3 function vs() RA = guiCreateStaticImage(91, 180, 398, 675, ":CODClasses/images/RA.png", false) US = guiCreateStaticImage(709, 180, 446, 675, ":CODClasses/images/US.png", false) showCursor(true) end function dxvs() dxDrawText("Russian Amry", 75, 112, 521, 176, tocolor(30, 34, 225, 255), 2.00, "bankgothic", "left", "top", false, false, false, false, false) dxDrawImage(59, 234, 551, 566, ":CODClasses/images/RAFlag.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(661, 282, 574, 512, ":CODClasses/images/USFlag.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawText("US Amry", 763, 110, 1209, 174, tocolor(220, 34, 34, 255), 2.00, "bankgothic", "left", "top", false, false, false, false, false) end function show () vs () addEventHandler("onClientRender", root, dxvs) end addEvent ( "onClientPlayerLogin", true ) addEventHandler ( "onClientPlayerLogin", getRootElement(), show) what wrong doing i'm?
TAPL Posted August 10, 2015 Posted August 10, 2015 addEventHandler("onPlayerLogin", root, function() triggerClientEvent(source, "onClientPlayerLogin", source) end)
TheSmart Posted August 10, 2015 Author Posted August 10, 2015 lol forget to make server side thank you @TAPL
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