cityrp.logs
Serverside logging utility.
- Servercityrp.logs.add(player1, steamid1, player2, steamid2, logtype, value1, value2, value3, value4)Source ☍
-
Add a raw log to the file. See
cityrp.logs.addPlyfor the ordering convention: the acting player goes first.Parameters
- player1(string|number)?The acting player's name.
- steamid1(string|number)?The acting player's steamid.
- player2(string|number)?The name of the player acted upon.
- steamid2(string|number)?The steamid of the player acted upon.
- logtypestring?The type of log to use.
- value1(string|number)?The first value to add.
- value2(string|number)?The second value to add.
- value3(string|number)?The third value to add.
- value4(string|number)?The fourth value to add.
- Servercityrp.logs.addPly(p1, p2, lType, v1, v2, v3, v4)Source ☍
-
Add a player-based log to the file. The acting player goes first: the admin control panel reads player1/steamid1 as the actor and staff auditing filters on steamid1, so the reverse order misattributes the action.
Parameters
- Servercityrp.logs.dump()Source ☍
-
Dump logs to the SQL table.