Skip to content

Commit

Permalink
Fixed "stuttering issue"
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatZiv committed Oct 26, 2018
1 parent d1ba912 commit 1aa38a8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions client.lua
Expand Up @@ -3,12 +3,13 @@
local nui = false

Citizen.CreateThread(function()

--[[ If you want to change the key, go to https://docs.fivem.net/game-references/controls/ and change the '20' value below]]
key = 10 -- Change this to your key value
nui = false
while true do
Citizen.Wait(1)
--[[ If you want to change the key, go to https://docs.fivem.net/game-references/controls/ and change the '20' value below]]
if IsControlPressed(0, 20)--[[ 'Z' Key ]] then
if IsControlPressed(0, key) then
if not nui then
local players = {}
ptable = GetPlayers()
Expand All @@ -24,7 +25,7 @@ Citizen.CreateThread(function()
nui = true
while nui do
Wait(0)
if(IsControlPressed(0, 48) == false) then
if(IsControlPressed(0, key) == false) then
nui = false
SendNUIMessage({
meta = 'close'
Expand Down

0 comments on commit 1aa38a8

Please sign in to comment.