-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAddict Speed.lua
More file actions
41 lines (32 loc) · 1.11 KB
/
Addict Speed.lua
File metadata and controls
41 lines (32 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
menu = gui.get_tab("Addict Speed")
-- Vehicle Speed --
function FastSpeed100(speed)
local vehicle = PED.GET_VEHICLE_PED_IS_IN(PLAYER.PLAYER_PED_ID(), true)
if vehicle then
VEHICLE.MODIFY_VEHICLE_TOP_SPEED(vehicle, 100)
end
end
function FastSpeed9999999(speed)
local vehicle = PED.GET_VEHICLE_PED_IS_IN(PLAYER.PLAYER_PED_ID(), true)
if vehicle then
VEHICLE.MODIFY_VEHICLE_TOP_SPEED(vehicle, 9999999)
end
end
function ResetSpeed(speed)
local vehicle = PED.GET_VEHICLE_PED_IS_IN(PLAYER.PLAYER_PED_ID(), true)
if vehicle then
VEHICLE.MODIFY_VEHICLE_TOP_SPEED(vehicle, 1)
end
end
local Veh_Speed = menu:add_tab("Vehicle Speed ")
Veh_Speed:add_text("Set Speeds For Vehicle")
Veh_Speed:add_button("Boost 100", function()
FastSpeed100()
end)
Veh_Speed:add_button("Addict boost 9999999", function()
FastSpeed9999999()
end)
Veh_Speed:add_button("Reset Speed", function()
ResetSpeed()
end)
------------------------------------------------------------------------------------------------------------------------------------------------------