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: setelementrotation
1. setElementRotation
Witam ponownie. xD
Ja taki nieporadny chyba jestem.

Chodzi o to, ?e chce ustawi? rotacje na 0, 0, 90, ale to nie dzia?a. Kr?tko i na temat poprosz?.

function start_pracagui(thePlayer)
    
guiSetVisible(tabpanel, false)
    
guiSetVisible(tab, false)
    
showCursor(false)
    
triggerServerEvent("praca_start", localPlayer)
    if 
isPedInVehicle(localPlayer) then -- if the local client is in a vehicle
        localVehicle 
= getPedOccupiedVehicle(localPlayer)
        if 
getVehicleController(localVehicle) == localPlayer then 
            local rotX
, rotY, rotZ = getElementRotation(localVehicle) -
            
setElementRotation(localVehicle,rotX,rotY,rotZ+90) 
        
end
    end
end
addEventHandler
("onClientGUIClick", tak, start_pracagui)


Daje R* .