Summary
Hooks
Called after Catwork has loaded all of its entities; restores saved cash when the
cash_enabled config is on.LoadCash()server
Spawns the cash entities saved for the current map.
PostSaveData()server
Called after Catwork saves its data; saves the cash lying on the map.
SaveCash()server
Saves every
cw_cash entity on the map to the schema data.Hooks
cwSaveCash:ClockworkInitPostEntity()
server gamemodes/catwork/plugins/savecash/plugin/sv_hooks.lua:5Implements 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.