Jump to content

Anybody can help me?


3HAXAPb94

Recommended Posts

This function not work I dont know how to fix it...

function pic() 
for i,pickup in pairs(getElementsByType("pickup")) do 
local elementID = getElementModel(pickup) 
if elementID == 1242 then 
    destroyElement (pickup) 
end 
end 
end 
addEventHandler("onClientResourceStart",resourceRoot,pic) 

Link to comment
function pic ( ) 
    for i, pickup in ipairs ( getElementsByType ( "pickup" ) ) do 
        if ( getPickupType ( pickup ) == 1 ) then 
            destroyElement ( pickup ) 
        end 
    end 
end 
addEventHandler( "onClientResourceStart", resourceRoot, pic ) 

Use this if you want to destroy all armour pickups..

Link to comment
function pic ( ) 
    for i, pickup in ipairs ( getElementsByType ( "pickup" ) ) do 
        if ( getPickupType ( pickup ) == 3 ) and ( getElementModel ( pickup ) == 1242 ) then 
            destroyElement ( pickup ) 
        end 
    end 
end 
addEventHandler ( "onClientResourceStart", resourceRoot, pic ) 

This should work i guess

(P.S. Make sure you pasted it on clientside)

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