PartyMTA Posted January 15, 2015 Share Posted January 15, 2015 Hello all, im working on a lobby for my gamemode, i used getThisResourceRoot(getThisResource()), but when i use it in the event with DirectX functions (text, image etc), it doesnt show up, but with playSound it does work. Any help pls? root = getResourceRootElement(getThisResource()) function onJoin(theResource) addEventHandler("onClientRender",root,lobby) showCursor(true) showChat(false,false) setRadioChannel(0) radio = playSound("http://www.internet-radio.com/servers/tools/playlistgenerator/?u=http://72.13.86.6:8000/listen.pls?sid=1&t=.pls") --loginGUI() setSoundVolume(radio,2.0) lobbyFunctions() setElementDimension ( gLP, dimensions.lobby ) end addEventHandler("onClientResourceStart",root,onJoin) the lobby to render are the DX functions. Link to comment
novo Posted January 15, 2015 Share Posted January 15, 2015 As specified here: onClientRender, the 'source' element specified should be the client's root element. Link to comment
xeon17 Posted January 15, 2015 Share Posted January 15, 2015 The showChat function have only one argument which is a bool (true or false) showChat(false,false) Should be: showChat(false) 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