Skip to content

Commit 1aa38a8

Browse files
authored
Fixed "stuttering issue"
1 parent d1ba912 commit 1aa38a8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

client.lua

+5-4
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
local nui = false
44

55
Citizen.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'

0 commit comments

Comments
 (0)