Jump to content

Drop Briefcase


SkatCh

Recommended Posts

hi guys please can anyone help me to create a command to drop briefcase like this onPlayerWasted :

addEventHandler("onPlayerWasted",root, 
    function () 
        if getElementData(source,"bag") and getElementData(source,"bag") == true then 
            local data = getElementData(atBag,"num") 
            local data = tonumber(data) 
            local x,y,z = getElementPosition(source) 
            setElementData(source,"bag",false) 
            destroyElement(atBag) 
            destroyElement(marker) 
            destroyElement(bli) 
            destroyElement(marBli) 
            ob = createPickup(x,y,z,3,1210,0) 
            setElementCollisionsEnabled(ob,false) 
            mar = createMarker(x,y,z,"corona",0.9,255,0,0,0) 
            setElementData(mar,"num",data) 
            bl = createBlipAttachedTo(mar,52) 
        end 
    end 
) 

Link to comment

lol i'm asking how to create it i tried this but didn't work :

  
    function Drop () 
        if getElementData(source,"bag") and getElementData(source,"bag") == true then 
            local data = getElementData(atBag,"num") 
            local data = tonumber(data) 
            local x,y,z = getElementPosition(source) 
            setElementData(source,"bag",false) 
            destroyElement(atBag) 
            destroyElement(marker) 
            destroyElement(bli) 
            destroyElement(marBli) 
            ob = createPickup(x,y,z,3,1210,0) 
            setElementCollisionsEnabled(ob,false) 
            mar = createMarker(x,y,z,"corona",0.9,255,0,0,0) 
            setElementData(mar,"num",data) 
            bl = createBlipAttachedTo(mar,52) 
        end 
    end 
addCommandHandler ("dropbc" , drop) 
  

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