Jump to content

if and


orcun99

Recommended Posts

3 minutes ago, developa said:

if exports.Xacl:isPlayerInGroup(source, "subadmin") and getPlayerTeam(source) == "asd" then 

 

Thank u bro now no debugscript 3 erorrs but panel still not open 

 

I'm in subadmin group and my team Staff what's wrong?

addCommandHandler("panel",
	function(source)
if exports.Xacl:isPlayerInGroup(source, "subadmin") and getPlayerTeam(source) == "Staff" then 
			triggerClientEvent(source, "openModPanel", getRootElement())
		end
end
)

 when I deleted this {{{{{{and getPlayerTeam(source) == "Staff"}}}}} then panel is working

Edited by orcun99
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...