Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hitch warnings #7

Open
KoolAiddTV opened this issue Nov 4, 2019 · 1 comment
Open

hitch warnings #7

KoolAiddTV opened this issue Nov 4, 2019 · 1 comment

Comments

@KoolAiddTV
Copy link

I'm getting a lot of hitch warnings
http://prntscr.com/pshnoz

@rex2630
Copy link

rex2630 commented Nov 18, 2019

U can comment, delete or edit this to fix this issue:
Citizen.CreateThread(function()
while true do
Citizen.Wait(1000)
local xPlayers = ESX.GetPlayers()
for i=1, #xPlayers, 1 do
local xPlayer = ESX.GetPlayerFromId(xPlayers[i])
if xPlayer ~= nil then
if xPlayer.getInventoryItem('radio').count == 0 then

            local source = xPlayers[i]
            TriggerClientEvent('ls-radio:onRadioDrop', source)

            break
          end
        end
      end
    end
  end)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants