- Back to Home »
- Kaynaklar »
- Tire,Engine,Tank Parts Sökme
Postado Por: Unknown
7 Ekim 2014 Salı
menu_client.lua ' nın alt kısmına bu kodları yazıyoruz...
----------
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
----------
aynen bu şekilde ekledim oyunda j basılmıyor sistem olmadı hatamı var yoksa eklemek için püf noktasımı var nereye ne şekilde eklenicek bilgilendiriseniz sevinirim.
YanıtlaSil