Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: setvehiclecomponent
1. setvehiclecomponent ustawienia domyślne
Witam, przyszed?em tym razem z problemem dotycz?cym setvehiclecomponent, a mo?e nawet i nie problemem, ale pytaniem. Ot?? wszystko dzia?a jak powinno, ale chcia?bym ?eby?cie mi troch? przerobili kawa?ek kodu. Ot?? po stworzeniu pojazdu pokazuj? si? wszystkie komponenty jakie s? dodane i nie ukrywajmy, je?li jest ich du?o, wygl?da to troch? niechlujnie je?li wszystkie si? na siebie nak?adaj?. Chcia?bym, aby po pojawieniu si? pojazdu wszystkie dodatkowe komponenty by?y ukryte. P?ki co jest tylko komenda(kt?r? dam ni?ej), kt?ra usuwa dodatkowe i zostawia te podstawowe.

[code]addCommandHandler("alldef", -- for vehicle component
function()
local theVeh = getPedOccupiedVehicle(localPlayer)
if (theVeh) then
setVehicleComponentVisible(theVeh, "roof1", false) -- hides the component
setVehicleComponentVisible(theVeh, "feet1", false) -- hides the component
setVehicleComponentVisible(theVeh, "feet2", false) -- hides the component
setVehicleComponentVisible(theVeh, "spoiler1", false) -- hides the component
setVehicleComponentVisible(theVeh, "spoiler1.2", false) -- hides the component
setVehicleComponentVisible(theVeh, "spoiler2", false) -- hides the component
setVehicleComponentVisible(theVeh, "spoiler3", false) -- hides the component
setVehicleComponentVisible(theVeh, "bumper1", false) -- hides the component
setVehi...