mirror of
https://github.com/citizenfx/cfx-server-data.git
synced 2025-12-12 06:14:09 +01:00
work on __resource -> fxmanifest and RDR compatibility
This commit is contained in:
@@ -8,7 +8,7 @@ Citizen.CreateThread(function()
|
||||
if IsControlPressed(0, 27)--[[ INPUT_PHONE ]] then
|
||||
if not listOn then
|
||||
local players = {}
|
||||
ptable = GetPlayers()
|
||||
local ptable = GetActivePlayers()
|
||||
for _, i in ipairs(ptable) do
|
||||
local wantedLevel = GetPlayerWantedLevel(i)
|
||||
r, g, b = GetPlayerRgbColour(i)
|
||||
@@ -35,18 +35,6 @@ Citizen.CreateThread(function()
|
||||
end
|
||||
end)
|
||||
|
||||
function GetPlayers()
|
||||
local players = {}
|
||||
|
||||
for i = 0, 31 do
|
||||
if NetworkIsPlayerActive(i) then
|
||||
table.insert(players, i)
|
||||
end
|
||||
end
|
||||
|
||||
return players
|
||||
end
|
||||
|
||||
function sanitize(txt)
|
||||
local replacements = {
|
||||
['&' ] = '&',
|
||||
|
||||
Reference in New Issue
Block a user