#meS Posted July 26, 2015 Share Posted July 26, 2015 Hello I want to restart a resource when player hit the marker But it's not working Code: function lol() restartResource("run") end addEventHandler("onMarkerHit",marker3,lol) Link to comment
Bonsai Posted July 26, 2015 Share Posted July 26, 2015 https://wiki.multitheftauto.com/wiki/Ge ... ceFromName But this is going to affect all players. Link to comment
xeon17 Posted July 26, 2015 Share Posted July 26, 2015 function lol() restartResource(getResourceFromName('run')) end addEventHandler("onMarkerHit",marker3,lol) And don't forget, the function restartResource need ACL rights to work. Link to comment
#meS Posted July 26, 2015 Author Share Posted July 26, 2015 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
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