File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 33local nui = false
44
55Citizen .CreateThread (function ()
6-
6+ --[[ If you want to change the key, go to https://docs.fivem.net/game-references/controls/ and change the '20' value below]]
7+ key = 10 -- Change this to your key value
78 nui = false
89 while true do
910 Citizen .Wait (1 )
10- --[[ If you want to change the key, go to https://docs.fivem.net/game-references/controls/ and change the '20' value below ]]
11- if IsControlPressed (0 , 20 ) --[[ 'Z' Key ]] then
11+
12+ if IsControlPressed (0 , key ) then
1213 if not nui then
1314 local players = {}
1415 ptable = GetPlayers ()
@@ -24,7 +25,7 @@ Citizen.CreateThread(function()
2425 nui = true
2526 while nui do
2627 Wait (0 )
27- if (IsControlPressed (0 , 48 ) == false ) then
28+ if (IsControlPressed (0 , key ) == false ) then
2829 nui = false
2930 SendNUIMessage ({
3031 meta = ' close'
You can’t perform that action at this time.
0 commit comments