DRW Posted June 2, 2015 Posted June 2, 2015 addEvent ("team9", true) addEventHandler ("team9", getRootElement(), function() local account = getPlayerAccount (source) if not isGuestAccount(account) then local accName = getAccountName (account) if isGangMember ("TMK",accName) then setPlayerTeam (source, escuadron17) outputChatBox ("Bienvenido, miembro de TMK.",source, 255,255,255) setElementPosition (source,188.6015625, -299.2578125, 1.578125) triggerClientEvent (source, "amosnose", source) end end end) attempt to call global isGangMember (a nil value). Whats the problem? Proud owner and developer of ZNEXT: Aftermath. Enter a post-apocalyptic San Andreas and fight over 30 types of enemies and bosses with varying difficulties and skills, improve and customize your character by leveling up, completing challenges and a solid lootbox system with no Pay-to-Win mechanics that will break your experience. Meet new characters, creatures and weapon metas, experience an innovative combo-based melee system, or join our solid PvP modes to show other survivors who’s boss. Español, Pусский, Türk, عربى, Polski, Português IP: mtasa://104.36.110.227:22003 - Discord: https://discord.gg/CxMxjvC5pB
DRW Posted June 2, 2015 Author Posted June 2, 2015 Have you created 'isGangMember' function? It's using gang_system by castillo, included in meta.xml Proud owner and developer of ZNEXT: Aftermath. Enter a post-apocalyptic San Andreas and fight over 30 types of enemies and bosses with varying difficulties and skills, improve and customize your character by leveling up, completing challenges and a solid lootbox system with no Pay-to-Win mechanics that will break your experience. Meet new characters, creatures and weapon metas, experience an innovative combo-based melee system, or join our solid PvP modes to show other survivors who’s boss. Español, Pусский, Türk, عربى, Polski, Português IP: mtasa://104.36.110.227:22003 - Discord: https://discord.gg/CxMxjvC5pB
WhoAmI Posted June 2, 2015 Posted June 2, 2015 If you are creating this function in another resource you have to call it like that exports.gang_system:isGangMember
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