Jump to content

[HELP] create table


#RooTs

Recommended Posts

local Positions =  
    { 
        { 1548, 1681, 13 },  
      --{ x,  y,  z }, 
    } 
  
for index = 1, #Positions do 
    Pickup = createPickup ( Positions [ index ] [ 1 ], Positions [ index ] [ 2 ], Positions [ index ] [ 3 ], 3, 1239, 60000 ) 
end 

Link to comment

what is wrong aii?

local Positions = 
    { 
        { 653.35773, -1769.18567, 13.57368 }, 
      --{ x,  y,  z }, 
    } 
  
for index = 1, #Positions do 
    local test = createPickup ( Positions [ index ] [ 1 ], Positions [ index ] [ 2 ], Positions [ index ] [ 3 ], 3, 1239, 10000 ) 
  
addEventHandler("onPickupHit",test, 
function(player) 
--setPlayerWantedLevel(player,getPlayerWantedLevel(player)-1) 
--setPedSkin ( player, 271 ) --skin 
giveWeapon(player, 24, 200, true) armar 
--setElementHealth(player, 100) --vida 
--setPedArmor(player, 90) --colete 
  
    end 
end) 

Link to comment
local Positions = 
    { 
        { 653.35773, -1769.18567, 13.57368 }, 
      --{ x,  y,  z }, 
    } 
  
for index = 1, #Positions do 
    local test = createPickup ( Positions [ index ] [ 1 ], Positions [ index ] [ 2 ], Positions [ index ] [ 3 ], 3, 1239, 10000 ) 
end 
  
    addEventHandler("onPickupHit",resourceRoot, 
function(player) 
--setPlayerWantedLevel(player,getPlayerWantedLevel(player)-1) 
--setPedSkin ( player, 271 ) --skin 
giveWeapon(player, 24, 200, true) -- 
--setElementHealth(player, 100) --vida 
--setPedArmor(player, 90) --colete 
  
    end 
) 

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