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: funkcjonuje.
1. Mój kod źle funkcjonuje. (komenda na "wyrwanie koła)
Witam. Oto m?j kod:
    addCommandHandler( 'kolo1',
    function( 
uPlayer )
        if 
isPedInVehicle( uPlayer ) then
            local uVehicle 
= getPedOccupiedVehicle( uPlayer )
            
local states = { [0]="inflated", [1]="flat", [2]="fallen off" }    -- we store the states in a table
            local frontLeft
, rearLeft, frontRight, rearRight = getVehicleWheelStates ( uVehicle )
                  
setVehicleWheelStates (uVehicle, "frontLeft", 2)
            
end
        end
)

Problem, jest taki, ?e ja po wpisaniu komendy /kolo1 chcia?bym, ?eby wypada?o mi przednie, lewe ko?o - jednak?e wypada tylnie lewe. Po?owa tego kodu jest na pewno zb?dna, zacz??em tam dopisywa? zmienne czy jako? tak, lecz to nic nie dawa?o...