Jump to content

don t work?


Recommended Posts

Posted

Hi all ,

In my code this to create a radar blip for other player [team]| don t work this,

setElementParent 

can fix problem and thx!

server-side:

team = getTeamFromName("Team2") 
otherPlayers = getPlayersInTeam(team) 
myBlip = createBlip ( 0, 0, 0 ) 
-- Make the player the parent of the blip, so that the blip follows the player around 
setElementParent ( myBlip, otherPlayers ) 

Posted

Setting the parent of element doesn't do anything related to positions. You need this function:

createBlipAttachedTo 

Get players in the team, cycle through them and create a blip for every player.

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