require('moonloader')
function main()
while not isSampAvailable() do wait(100) end
while true do wait(0)
if isKeyDown(VK_Z) and isCharInAnyCar(PLAYER_PED) and not sampIsDialogActive() and not sampIsChatInputActive() then
local veh = storeCarCharIsInNoSave(PLAYER_PED)
addToCarRotationVelocity(veh, 0, 0, 0.15) -- здесь менять скорость и вектор вращения.
setVehicleMoveSpeed(veh, 0, 0, 0)
end
end
end -- часть кода отсюда -> https://www.blast.hk/threads/19855
function setVehicleMoveSpeed(handle, x, y, z)
local ptr = getCarPointer(handle)
if ptr ~= 0 then
require("ffi").cast("void (__thiscall *)(uint32_t, float, float, float)", 0x441130)(ptr, x, y, z)
end
end -- и отсюда https://www.blast.hk/threads/80568/post-681849