Skip to content
Docs

Player logs

A searchable record of what characters did on your server, from money and items to vehicles and deaths. How to switch it on, search it and manage storage.

On this page

The player log records what characters do on your server: money moving, items gained and lost, vehicles taken out, deaths and revives, jobs, property and more. Your staff can search it by player, item, amount and time.

The Player log
The player log: search, filters, storage and what is collected

Switch it on#

The player log is off until you switch it on.

  1. Open Player log and press Settings.
  2. Turn on Collect player events.
  3. Choose What to collect. Every category except Session, Combat and Spawning is on by default.
  4. Press Save.
The Player log settings
Choose what is collected

A category that is switched off is never collected at all, so it costs your server nothing. Ignore money events under skips tiny amounts, such as a server paying everybody a little in wages every minute.

FiveStaff picks up events from QBCore, Qbox, ESX, ox_core, ND_Core, HFX and ox_inventory by itself, with no changes to your scripts. Scripts that log to Discord or through ox_lib's logger can send their logs here too: see logs from other scripts.

The categories#

Category Examples
Session Joining and leaving
Money Cash and bank changes, balances set, transfers between players, purchases, bills and fines
Inventory Items added, removed, used, given, bought, crafted, moved into and out of stashes and boots, items created from nothing, and one player searching or taking from another
Vehicles Vehicles bought, who was driving, and a change of owner
Life Deaths, kills, revives, hospital, jail and release. See deaths
Combat Explosions, fires started, weapons given to or taken from another player, and a player being stopped in their tracks
Spawning Vehicles, peds and objects a player spawned. See spawning
Jobs Job changes, going on and off duty
Property Properties bought and sold
Admin Things staff spawned or gave out, admin commands, the server starting, shutting down or announcing a restart, and resources started and stopped
Scripts Anything your own scripts send

Deaths#

A death says how it happened, not just that it did: shot, a fall, fire, drowning, an explosion, being hit by a vehicle or a crash. Where somebody was responsible, it names them, whether a player, an NPC, an animal or the driver of a vehicle, with the weapon, the damage over how many hits, where the last hit landed (and whether it was a headshot), how far away they were, the street, and the killer's own health and armour.

A killer is only named when your server saw them hurt the victim in the moments before. A death a player's game reports on its own, with nobody seen hurting them, is logged as a death rather than a kill, so a script cannot pin one on somebody.

Combat#

Combat is off by default, because on a busy server it is a lot of events. Turn it on to see explosions (marked when nobody could see or hear them), fires being started, and weapons handed to or taken from another player. The same thing happening over and over is folded into one line per player every few seconds.

Spawning#

Off by default. It shows the vehicles, peds and objects a player's game created, such as a menu spawning a car, but never the game's own traffic. A burst is one line ("spawned 6 objects"). Your own scripts spawn things too, so nothing here is flagged; an alert rule can.

Who else, which vehicle, where#

An event names the other player involved, the vehicle (plate and model), the stash or boot an item went into, and the street. A give or a bill shows on both players' logs, each from their own side.

Deaths, combat and the other categories can also be posted to Discord as they happen. See game logs.

Searching#

  • Search looks for a name, an item, a reason or anything else in the detail.
  • From and To set the time window. It starts at the last 24 hours.
  • Kind of event, Item, Amount from/to and Plate narrow it further.
  • In an open event, press the filter beside a player to see everything involving them.
  • The category chips show how many events of each kind are in the window. Press one to show only that kind.

Press an event to see everything recorded about it, including where on the map it happened.

Repeats are grouped#

When a player does the same thing to the same item over and over, such as moving ten stacks into a stash, it is shown as one line with a count. Open it to see each one. Different players are never grouped together. Press Grouped to turn this off.

Tracing where something came from#

Open any event that moves money or an item and press Trace where it came from and went. You see who handed it on before, and who it went to after, a few hand-overs each way.

  • Appeared from nothing marks an admin spawn or a script creating an item with no source.
  • Handed on more than they got marks somebody who passed on more than they were seen receiving in the day before. They may have had it already, so check before acting.
  • Press Trace from here on any hand-over to follow it further.

Attaching entries to a report#

Log entries can be kept with a report as evidence. Three ways:

  • On the Player log, press Pick for a report, tick the entries, then Attach to a report. Reports about those players are listed first.
  • Open any event and press Attach to a report.
  • On a report, open Evidence and press Add from the player log. It opens on the reported player's hour before the report.

A copy is kept with the report, so it stays even if the logs are cleared or reach the end of your plan's period. Removing an entry from a report, or deleting the report, never changes the player log.

Elsewhere in the panel#

  • A player's profile has an Activity tab with their log.
  • Each character has a Logs tab.
  • Every report keeps the reported player's last ten minutes of log, even after the log itself has moved on.

Storage#

Each plan comes with room for events. The Storage card shows how much is used and roughly how many more events will fit.

Plan Room for Kept for
Free 500 MB, about 17 million events 30 days
Pro 5 GB, about 179 million events 1 year

Older events are removed by themselves once they pass your plan's period. If the log fills up before then, new events stop being collected until there is room. Nothing old is overwritten. You are warned at 80% and 95% full if you have turned that alert on.

To make room, press Clear logs, choose whole months to remove and confirm. There is no undo.

Logging from your own scripts#

If you have custom scripts, such as a drug-selling script, they can add their own events with one line of Lua on the server side:

exports.fivestaff:logEvent(source, 'drugs.weed.sold', { item = 'weed_brick', amount = 5, price = 2500 })
  • The name is yours to choose. Something like what.happened reads best in the log.
  • item and amount become searchable fields. Everything else shows in the event's detail.
  • It goes under Scripts. To file it somewhere else, add category = 'money' (or inventory, vehicle, life, combat, job, property or admin).
  • A server can have up to 200 different kinds of event.

For scripts you cannot edit, such as escrowed ones, see logs from other scripts.

Permissions#

Reading the log, tracing and the economy page need View the player log. Attaching entries to a report also needs View reports. Changing what is collected and clearing it needs Choose what is logged, and clear logs.