#1WallSex Set 12, 2014 12:09 pm
Wall
Moderador
No menu Client :
Créditos : Scarface
--------------------------------------------------------------------------------
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
--------------------------------------------------------------------------------
Créditos : Scarface