Module core.libraries.sv_remote
Remote Commands Library.
Module Overview
Functions
| cityrp.remote.status(id, status) | Set the status of a row. |
| cityrp.remote.done(id) | Mark a row as done by passing it's ID. |
| cityrp.remote.exploit(id) | Flag as a row for requiring an exploit check. |
| cityrp.remote.stockDone(id) | Flag as a row as completed for the stock exchange? |
| cityrp.remote.stalled(id) | Flag a row as stalled (inventory manager) |
| cityrp.remote.registerFunction(mType, func) | Register a function to be called for a specific type of remote message. |
| cityrp.remote.checkRow(row) | Check if there is a handler function for a given row, and if so, call it. |
| cityrp.remote.doPRAlert(ply, id) | Small function to notify a player of a player report. |
| cityrp.remote.check() | Call the database for any unprocessed remote commands, and run any handlers attachmed to them. |
| cityrp.remote.membership(ply) | Add a set of membership to the player. |
| cityrp.remote.moneypack(ply, qty) | Add moneypacks to the player. |
Tables
| cityrp.remote | Table for data storage and global access. |
| cityrp.remote.functions | The table which stores registered functions. |
| cityrp.remote.noSave | List of servers which don't save data (so don't do membership, money or inventory shit on them). |
- cityrp.remote.status(id, status)
-
Set the status of a row.
Parameters:
- id The ID of the row.
- status The new status to set.
- cityrp.remote.done(id)
-
Mark a row as done by passing it's ID.
Parameters:
- id The ID of the row to mark as complete.
- cityrp.remote.exploit(id)
-
Flag as a row for requiring an exploit check.
Parameters:
- id The ID of the row to mark as exploited.
- cityrp.remote.stockDone(id)
-
Flag as a row as completed for the stock exchange?
Parameters:
- id The ID of the row to mark as complete.
- cityrp.remote.stalled(id)
-
Flag a row as stalled (inventory manager)
Parameters:
- id number ID of the row to mark.
- cityrp.remote.registerFunction(mType, func)
-
Register a function to be called for a specific type of remote message.
Parameters:
- mType The type of remote messages to watch for. This function takes two arguments, row and done. Row is a table, representing the row data. Done is a function which can be called to mark the row as processed.
- func The function to be called if found.
- cityrp.remote.checkRow(row)
-
Check if there is a handler function for a given row, and if so, call it.
Parameters:
- row Row to check.
- cityrp.remote.doPRAlert(ply, id)
-
Small function to notify a player of a player report.
Parameters:
- ply The player to alert.
- id The thread ID of the thread with the report.
- cityrp.remote.check()
- Call the database for any unprocessed remote commands, and run any handlers attachmed to them. This function is internal, and should not be called.
- cityrp.remote.membership(ply)
-
Add a set of membership to the player.
Parameters:
- ply Player The player to add membership for.
Returns:
-
bool
If the player was given membership.
- cityrp.remote.moneypack(ply, qty)
-
Add moneypacks to the player.
Parameters:
- ply The player to add packs for.
- qty The number of moneypacks to add.
Returns:
-
If the player was given their packs.