sexta-feira, 19 de setembro de 2014

[TUTORIAL]Remover Tire, Engine e Tank Parts

No *Menu_Client : 


--------------------------------------------------------------------------------

            if itemName == "removetire" then
                local col = getElementData(getLocalPlayer(),"currentCol")
                if getElementData(col,"tire_inVehicle") >= 1 and getElementData(getLocalPlayer(),"Toolbox") >= 1 then
                    local col = getElementData(getPlayer(),"currentCol")
                    setElementData(getLocalPlayer(),"Tire",(getElementData(getLocalPlayer(),"Tire") or 0)+1)
                    setElementData(col,"Tire_invEhicle",getElementData(col,"Tire_inVehicle")-1)
                    setPedAnimation(getLocalPlayer(),"BOMBER","BOM_Plant",nil,false,false,nil,false)
                    triggerEvent("displayClientInfo",getLocalPlayer(),"Vehicle","You removed 1 Tire from vehicle",255,255,255)
                    disableMenu()
                    return
                end
            end

--------------------------------------------------------------------------------

onPlayerPressMiddleMouse
if getElementData(getLocalPlayer(),"Toolbox") >= 1 then
            scrollmenuText("Remove Tire ("..arg2..")",255,255,255,"removetire")
            setElementData(localPlayer,"usedItem",true)

        end

--------------------------------------------------------------------------------
Compartilhar:

0 comentários:

Postar um comentário

Translate

Total De Visualizações