Jump to content

[HELP] Using roots


PartyMTA

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...