local speed = 5
local active = false
function main()
while not isSampAvailable() do wait(0) end
sampRegisterChatCommand('fastcar', function()
active = not active
sampAddChatMessage(active and 'Включен' or 'Выключен', -1)
end)
while true do
wait(0)
--https://www.blast.hk/threads/13892/post-482590
anims = {'CAR_OPEN_LHS', 'CAR_OPEN_RHS', 'CAR_GETIN_LHS', 'CAR_GETINL_LHS', 'CAR_GETIN_RHS', 'CAR_GETINL_RHS', 'CAR_GETOUTL_LHS', 'CAR_GETOUTL_RHS', 'CAR_GETOUT_LHS', 'CAR_GETOUT_RHS'}
if active then
for k, v in pairs(anims) do setCharAnimSpeed(PLAYER_PED, v, speed) end
else
for k, v in pairs(anims) do setCharAnimSpeed(PLAYER_PED, v, 1) end
end
end
end