NodZen_42 Posted July 11, 2018 Posted July 11, 2018 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
Moderators IIYAMA Posted July 11, 2018 Moderators Posted July 11, 2018 Because the function does not exist in mta. From here you can get the function and apply it in your code: https://wiki.multitheftauto.com/wiki/IsPlayerInTeam
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