Jump to content

RestartResource


#meS

Recommended Posts

ok ok i want if the a resource with name gamemode restarted then i want it to set the player data joiner and the other things look but it doesn't work

Code:

  
lp = getLocalPlayer() 
  
function resman() 
local res = getResourceFromName ( "gamemode" ) 
if getElementData(lp,"logon") == true then 
guiSetVisible(GUImain.window[1],true) 
setElementData(lp,"joiner",true) 
showCursor ( true ) 
end 
end 
addEventHandler("onClientResourceStart",res,resman) 

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...