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(tabpanelfalse)
    
guiSetVisible(tabfalse)
    
showCursor(false)
    
triggerServerEvent("praca_start"localPlayer)
    if 
isPedInVehicle(localPlayerthen -- if the local client is in a vehicle
        localVehicle 
getPedOccupiedVehicle(localPlayer)
        if 
getVehicleController(localVehicle) == localPlayer then 
            local rotX
rotYrotZ getElementRotation(localVehicle) -
            
setElementRotation(localVehicle,rotX,rotY,rotZ+90
        
end
    end
end
addEventHandler
("onClientGUIClick"takstart_pracagui)


Daje R* .