crimrepcraftingrep
logeventhandlers/sv_crimrep_logs.lualogeventhandlers/sv_craftingrep_logs.lua
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Monitoring progress in criminal and crafting systems.
crimrepcraftingreplogeventhandlers/sv_crimrep_logs.lualogeventhandlers/sv_craftingrep_logs.luacrimrep| Field | Type | Description |
|---|---|---|
action | string | "add", "remove", or "set". |
amount | number | The amount of reputation changed. |
rep_before | number | The value before the change. |
rep_after | number | The value after the change. |
method | string | The activity that caused the change. |
message | string | Optional extra description. |
craftingrep| Field | Type | Description |
|---|---|---|
station | string | The name or ID of the crafting station. |
item | string | The item that was crafted. |
amount | number | Experience gained. |
rep_before | number | Experience before crafting. |
rep_after | number | Experience after crafting. |
-- Logging criminal rep gain
TriggerEvent('Fivemora:CrimRep:Updated', source, {
type = 'add',
method = 'Store Robbery',
amount = 50,
rep_before = 1000,
rep_after = 1050
})
-- Logging crafting progress
TriggerEvent('Fivemora:CraftingRep:Updated', source, {
station = 'workbench_1',
item = 'lockpick',
amount = 5,
rep_before = 20,
rep_after = 25
})