Module core.libraries.sv_logs

Serverside logging utility.

Module Overview

Functions

cityrp.logs.addPly(p1, p2, lType, v1, v2, v3, v4) Add a player-based log to the file.
cityrp.logs.add(player1, steamid1, player2, steamid2, logtype, value1, value2, value3, value4) Add a raw log to the file.
cityrp.logs.dump() Dump logs to the SQL table.

Tables

cityrp.logs Main table for storing log functions.
cityrp.logs.logs The stored logs which have yet to be dumped.

Fields

cityrp.logs.propprotection The prop protection system being used.
cityrp.logs.cleanupran If the log cleanup has been ran.

Functions

cityrp.logs.addPly(p1, p2, lType, v1, v2, v3, v4)
Add a player-based log to the file.

Parameters:

  • p1 The first player.
  • p2 The second player.
  • lType The type of log to use.
  • v1 The first value to add.
  • v2 The second value to add.
  • v3 The third value to add.
  • v4 The fourth value to add.
cityrp.logs.add(player1, steamid1, player2, steamid2, logtype, value1, value2, value3, value4)
Add a raw log to the file.

Parameters:

  • player1 The first player's name.
  • steamid1 The first player's steamid.
  • player2 The second player's name.
  • steamid2 The second player's steamid.
  • logtype The type of log to use.
  • value1 The first value to add.
  • value2 The second value to add.
  • value3 The third value to add.
  • value4 The fourth value to add.
cityrp.logs.dump()
Dump logs to the SQL table.

Tables

cityrp.logs
Main table for storing log functions.
cityrp.logs.logs
The stored logs which have yet to be dumped.

Fields

cityrp.logs.propprotection
The prop protection system being used.
cityrp.logs.cleanupran
If the log cleanup has been ran.