Jump to content

[Help]Lua....Team


JasperRieken

Recommended Posts

i whas making the script but it doesn't work and can't figure out what i tried debugscript it sais somting like bad addEventHandler but i can't seem to fix it

function skinStaff(player) 
if getElementType(player) == "player" then  
local team = getPlayerTeam(player)  
if team and getTeamName(team) == "Xuju Crew" then 
setElementModel( 217 ) 
end 
end 
end 
addEventHandler("onPlayerTeamJoin",skinStaff) 

Link to comment

He probably doesn't know what he's doing. Don't start typing random events, use the WIKI!

MTA has no event for team joins, so you'll have to dig in your code where teams are set and customize it there.

Or if you're lucky onPlayerTeamJoin is triggered by one of your scripts, but then we'll need more details.

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