Summary

Hooks

Called after Catwork has loaded all of its entities; restores saved cash when the cash_enabled config is on.
Spawns the cash entities saved for the current map.
Called after Catwork saves its data; saves the cash lying on the map.
Saves every cw_cash entity on the map to the schema data.

Hooks

cwSaveCash:ClockworkInitPostEntity()

server gamemodes/catwork/plugins/savecash/plugin/sv_hooks.lua:5

Implements hook ClockworkInitPostEntity

Called after Catwork has loaded all of its entities; restores saved cash when the cash_enabled config is on.

Spawns the cash entities saved for the current map.

Restores each entity's amount, position, angles, owner key and unique ID, and freezes the ones that were frozen when saved.

Implements hook PostSaveData

Called after Catwork saves its data; saves the cash lying on the map.

Saves every cw_cash entity on the map to the schema data.

Stores the amount, position, angles, whether it can move, and the key and uniqueID properties.

Defined in