Ramboo Posted November 12, 2011 Share 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. Link to comment
SDK Posted November 12, 2011 Share 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). Link to comment
Ramboo Posted November 12, 2011 Author Share Posted November 12, 2011 isn't there any event, which checks changing info of player? Link to comment
knash94 Posted November 12, 2011 Share 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. Link to comment
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