Server Functions (QB-Core)
Server editables can be found in: server/esx_framework.lua
GetPoliceCount
This function returns how many cops are online.
GiveGrabbedCash
This function gives the player the cash he just grabbed. (In Black Money)
Parameters
player_src
: integer, player server ID. In this case, equivalent tosource
.event
:earnings
: number, amount given after a full stack of cash is grabbed.
DoesPlayerHaveItem
This function returns whether the player has the item or not.
Parameters
player_src
: integer, player server ID. In this case, equivalent tosource
.item
: string, item name.
DiscordLog
This function is called when a discord log should be sent. You have to set up your own discord log system.
Parameters
player_src
: integer, player server ID. In this case, equivalent tosource
.event
:name
: string, log name. (Possible values: “cheat”, “cash”, “start”, “reset”)earnings
: number, amount of cash earned. (Only forevent.name
“cash”)
SendPoliceAlert [Event]
This event is triggered when a player starts to hack a bank vault. Its purpose is to alert cops.
Parameters
coords
: vector3, world position of the bank being robbed.
Last updated