Jump to content

I need help with the 'isPlayerInTeam' function


Recommended Posts

Hi guys, i need your help with my script.

 

function setear_humanos ()
local GET_TEAM_HUMANOS = isPlayerInTeam(source, "Humanos")
     if GET_TEAM_HUMANOS then
         setElementModel(source, skins_humanos[math.random(#skins_humanos)][1])
		 outputChatBox("Ahora eres humano", source, 0,200,0)
	end
end
addEventHandler("onPlayerSpawn",root, setear_humanos)

The error is "attempt to call global" in the isPlayerInTeam function

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