Ramboo Posted November 12, 2011 Posted November 12, 2011 What is the event, when a guy change the team? For example, you joined the game => you login => you get into a team => your blip color changes immediately accroding to team color.
SDK Posted November 12, 2011 Posted November 12, 2011 There ain't one. Only scripts can change the player's team, so you should modify those scripts. Or use a timer to check every player's team and change the colour accordingly. Or set a timer with little delay after the login to check the team (dirty).
Ramboo Posted November 12, 2011 Author Posted November 12, 2011 isn't there any event, which checks changing info of player?
knash94 Posted November 12, 2011 Posted November 12, 2011 Hey ramby, you could always use an exported resource with an event trigger for example, create a resource called HiViFunctions with in the meta then make a lua file within that resource containing something like: addEvent("onPlayerChangeTeam", true) function setPlayerTeam(player, team) if setPlayerTeam(player, team) then triggerEvent ("onPlayerChangeTeam", player, team) return true; else return false; end end then you could call this with a simple exports.HiViFunctions:setPlayerTeam (playerElement, teamElement) Haven't tested this, but don't see for any reason why it shouldn't work, good luck bro.
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