Jump to content

Teleport marker for a team


Recommended Posts

  • Replies 54
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

local theMarker = createMarker ( -2596.625, 579.358, 15.626, 'cylinder', 2.0, 255, 0, 0, 150 )  
  
addEventHandler('onClientMarkerHit',theMarker, 
    function ( hit ) 
        if hit = localPlayer then 
            if getPlayerTeam ( hit ) and not isPedInVehicle ( hit ) then 
                if getTeamName ( getPlayerTeam ( hit ) ) == 'Team1' then 
                    setElementPosition( hit , 2287.78320,607.99255,10.82031 ) 
                    outputChatBox ( 'SET POS DONE!' ) 
                end 
            end 
        end 
    end,false 
) 

Please make sure you're in team called 'Team1' Please!

IT'S CLIENT SIDE.

Link to comment
local theMarker = createMarker ( -2596.625, 579.358, 15.626, 'cylinder', 2.0, 255, 0, 0, 150 )  
  
addEventHandler('onClientMarkerHit',theMarker, 
    function ( hit ) 
        if hit = localPlayer then 
            if getPlayerTeam ( hit ) and not isPedInVehicle ( hit ) then 
                if getTeamName ( getPlayerTeam ( hit ) ) == 'Team1' then 
                    setElementPosition( hit , 2287.78320,607.99255,10.82031 ) 
                    outputChatBox ( 'SET POS DONE!' ) 
                end 
            end 
        end 
    end,false 
) 

Please make sure you're in team called 'Team1' Please!

IT'S CLIENT SIDE.

Testing now.

Link to comment
answer my question

did you added some codes in client.lua?

no I just edited the team name and the position

client.lua

local theMarker = createMarker ( 2289.99, 581.85, 10.2, 'cylinder', 2.0, 255, 0, 0, 150 )  
  
addEventHandler('onClientMarkerHit',theMarker, 
    function ( hit ) 
        if hit = localPlayer then 
            if getPlayerTeam ( hit ) and not isPedInVehicle ( hit ) then 
                if getTeamName ( getPlayerTeam ( hit ) ) == 'Team1' then 
                    setElementPosition( hit , 2250.1647949219, 586.35363769531, 66562461853 ) 
                    outputChatBox ( 'SET POS DONE!' ) 
                end 
            end 
        end 
    end,false 
) 

Link to comment
answer my question

did you added some codes in client.lua?

no I just edited the team name and the position

client.lua

local theMarker = createMarker ( 2289.99, 581.85, 10.2, 'cylinder', 2.0, 255, 0, 0, 150 )  
  
addEventHandler('onClientMarkerHit',theMarker, 
    function ( hit ) 
        if hit = localPlayer then 
            if getPlayerTeam ( hit ) and not isPedInVehicle ( hit ) then 
                if getTeamName ( getPlayerTeam ( hit ) ) == 'Team1' then 
                    setElementPosition( hit , 2250.1647949219, 586.35363769531, 66562461853 ) 
                    outputChatBox ( 'SET POS DONE!' ) 
                end 
            end 
        end 
    end,false 
) 

The team name didnt changed -.-

Link to comment

FUCK Sorry i forget something try :

local theMarker = createMarker ( -2596.625, 579.358, 15.626, 'cylinder', 2.0, 255, 0, 0, 150 )  
  
addEventHandler('onClientMarkerHit',theMarker, 
    function ( hit ) 
        if hit == localPlayer then 
            if getPlayerTeam ( hit ) and not isPedInVehicle ( hit ) then 
                if getTeamName ( getPlayerTeam ( hit ) ) == 'Team1' then 
                    setElementPosition( hit , 2287.78320,607.99255,10.82031 ) 
                    outputChatBox ( 'SET POS DONE!' ) 
                end 
            end 
        end 
    end,false 
) 

Link to comment
:o Sorry i forget something try :
local theMarker = createMarker ( -2596.625, 579.358, 15.626, 'cylinder', 2.0, 255, 0, 0, 150 )  
  
addEventHandler('onClientMarkerHit',theMarker, 
    function ( hit ) 
        if hit == localPlayer then 
            if getPlayerTeam ( hit ) and not isPedInVehicle ( hit ) then 
                if getTeamName ( getPlayerTeam ( hit ) ) == 'Team1' then 
                    setElementPosition( hit , 2287.78320,607.99255,10.82031 ) 
                    outputChatBox ( 'SET POS DONE!' ) 
                end 
            end 
        end 
    end,false 
) 

Testing now.

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...