Server Functions (QB-Core)
Server editables can be found in: server/esx_framework.lua
GetPoliceCount
function GetPoliceCount()
local count = 0
for ServerId, Player in ipairs(QBCore.Functions.GetQBPlayers()) do
if Player.PlayerData.job.name == "police" then
count = count + 1
end
end
return count
endGiveGrabbedCash
function GiveGrabbedCash(player_src, event)
QBCore.Functions.GetPlayer(player_src).Functions.AddMoney("cash", event.earnings)
endParameters
DoesPlayerHaveItem
Parameters
DiscordLog
Parameters
SendPoliceAlert [Event]
Parameters
Last updated