DOWNLOAD
Código: Selecionar tudo
local ffi = require "ffi"
function main()
while true do
wait(0)
if isCharSittingInAnyCar(playerPed) then
local veh = storeCarCharIsInNoSave(playerPed)
local fGBPedal = ffi.cast("float*", getCarPointer(veh) + 0x49C)
if fGBPedal[0] > 0.0 and fGBPedal[1] > 0.0 then
while fGBPedal[0] > 0.0 and fGBPedal[1] > 0.0 do
wait(0)
end
for i = 3.0, 25.0, 1.5 do
wait(0)
if fGBPedal[0] > 0.0 then
setCarForwardSpeed(veh, i)
end
end
end
end
end
end