fairyoggy Posted July 6, 2019 Share Posted July 6, 2019 --server function checkguest (playerSource) sourceAccount = getPlayerAccount ( playerSource ) if isGuestAccount ( sourceAccount ) then CancelEvent() end end addEvent("checkguest",true) addEventHandler("checkguest",root,checkguest) --client function menuactivate () triggerServerEvent( "checkguest", getLocalPlayer()) DGS:dgsSetVisible(menuokno,true) end end addCommandHandler("menu",menuactivate) If you enter a command /menu then window appear. So... How to make a check on a guest? I mean the function will not work if player is guest. Link to comment
HassoN Posted July 6, 2019 Share Posted July 6, 2019 Try making the command on server side, check if player is not a guest then send a trigger to client side to open the menu. 1 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