-
Notifications
You must be signed in to change notification settings - Fork 0
/
FiveM LSPDFR Tool.bat
207 lines (196 loc) · 8.24 KB
/
FiveM LSPDFR Tool.bat
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
@echo off
::In order to use this tool, you must have the following:
::GTA V Folder with a fresh install,
::GTA V FiveM folder with your FiveM Files, and
::GTA V LSPDFR folder with your LSPDFR Files.
::
::This is the location of your GTA Directory
::HIGHLIGHT THE QUOTED CODE AND SELECT CHANGE ALL OCCURENCES "C:\Program Files (x86)\steam\steamapps\common"
::This is the location of your FiveM Directory
::HIGHLIGHT THE QUOTED CODE AND SELECT CHANGE ALL OCCURENCES "%userprofile%\AppData\Local\FiveM"
::
::Lastly, Create the following text files and place them in the following directories:
::GTA5.TXT --> GTA V Root
::FiveM.TXT --> GTA V FiveM Root
::LSPDFR.TXT --> GTA V LSPDFR Root
::
::PREREQUISITES
title Grand Theft Auto V Launcher Tool
set count=0
goto check
:check
tasklist | find /i "RAGEPluginHook.exe" && goto wait
tasklist | find /i "GTA5.exe" && goto wait
tasklist | find /i "FiveM.exe" && goto wait
goto :start
:wait
if %count% GEQ 3 (
goto message1
)
cls
echo.
echo.
echo Waiting to verify games are closed...
timeout 5
goto :count
:count
set /a count=%count%+1
goto check
:message1
if %count% GEQ 5 (
goto message2
)
cls
echo.
echo.
echo This seems to be taking awhile...
timeout 5
goto count
:message2
cls
echo.
echo.
echo An error has occured.
echo.
echo Please verify your games are closed before running this tool.
echo.
pause
goto EOF
:nevermind
goto EOF
::BEGIN CODE
:start
cls
echo.
echo Hello %username%, Which Game would you like to play today?
echo.
echo 1: FiveM
echo 2: LSPDFR
echo 3: Grand Theft Auto V Single Player
echo 4: Nevermind, I don't want to play these anymore.
set choice=
echo.
set /p choice=
if not '%choice%'=='' set choice=%choice:~0,1%
::To Remove an option, comment out (::) the line and update the numbers below and above to match.
if '%choice%'=='1' goto FiveM
if '%choice%'=='2' goto LSPDFR
if '%choice%'=='3' goto GTA5
if '%choice%'=='4' goto nevermind
echo Please select a valid option and try again.
pause
goto start
:FiveM
echo.
if exist "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V" (
cd "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V"
if exist "GTA5.txt" (
cd "C:\Program Files (x86)\steam\steamapps\common" & move "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V" "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V Clean"
if exist "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V FiveM" (
cd "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V FiveM"
if exist "FiveM.txt" (
cd "C:\Program Files (x86)\steam\steamapps\common" & move "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V FiveM" "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V"
start /b "" "%userprofile%\AppData\Local\FiveM\FiveM.exe"
goto EOF
)
)
)
if exist "fivem.txt" (
start /b "" "%userprofile%\AppData\Local\FiveM\FiveM.exe\FiveM.exe"
goto EOF
)
if exist "LSPDFR.txt" (
cd "C:\Program Files (x86)\steam\steamapps\common" & move "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V" "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V LSPDFR"
if exist "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V FiveM" (
cd "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V FiveM"
if exist "fivem.txt" (
cd "C:\Program Files (x86)\steam\steamapps\common" & move "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V FiveM" "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V"
start /b "" "%userprofile%\AppData\Local\FiveM\FiveM.exe\FiveM.exe"
goto EOF
)
)
)
) else (
goto error
)
:LSPDFR
echo.
if exist "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V" (
cd "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V"
if exist "GTA5.txt" (
cd "C:\Program Files (x86)\steam\steamapps\common" & move "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V" "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V Clean"
if exist "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V LSPDFR" (
cd "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V LSPDFR"
if exist "LSPDFR.txt" (
cd "C:\Program Files (x86)\steam\steamapps\common" & move "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V LSPDFR" "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V"
cd "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V"
start /b "" "RAGEPluginHook.exe"
goto EOF
)
)
)
if exist "LSPDFR.txt" (
cd "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V"
start /b "" "RAGEPluginHook.exe"
goto EOF
)
if exist "fivem.txt" (
cd "C:\Program Files (x86)\steam\steamapps\common" & move "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V" "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V FiveM"
if exist "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V LSPDFR" (
cd "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V LSPDFR"
if exist "LSPDFR.txt" (
cd "C:\Program Files (x86)\steam\steamapps\common" & move "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V LSPDFR" "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V"
cd "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V"
start /b "" "RAGEPluginHook.exe"
goto EOF
)
)
)
) else (
goto error
)
:GTA5
echo.
if exist "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V" (
cd "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V"
if exist "fivem.txt" (
cd "C:\Program Files (x86)\steam\steamapps\common" & move "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V" "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V FiveM"
if exist "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V Clean" (
cd "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V Clean"
if exist "GTA5.txt" (
cd "C:\Program Files (x86)\steam\steamapps\common" & move "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V Clean" "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V"
start /b "" "steam://rungameid/271590"
goto EOF
)
)
)
if exist "GTA5.txt" (
start /b "" "steam://rungameid/271590"
goto EOF
)
if exist "LSPDFR.txt" (
cd "C:\Program Files (x86)\steam\steamapps\common" & move "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V" "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V LSPDFR"
if exist "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V Clean" (
cd "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V Clean"
if exist "GTA5.txt" (
cd "C:\Program Files (x86)\steam\steamapps\common" & move "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V Clean" "C:\Program Files (x86)\steam\steamapps\common\Grand Theft Auto V"
start /b "" "steam://rungameid/271590"
goto EOF
)
)
)
) else (
goto error
)
:error
echo An error has occured. Please try again.
echo.
echo If this issue persists, please make sure your GTA Folders are as follows:
echo Grand Theft Auto V (Contains GTA5.txt)
echo Grand Theft Auto V FiveM (Contains FiveM.txt)
echo Grand Theft Auto LSPDFR (Contains LSPDFR.txt)
echo.
echo If the problem persists after checking your folders are correct, please contact the author for assistance.
echo.
pause
goto start