Summary
Hooks
Called after Catwork has loaded all map entities; restores the saved vending machines.
Spawns the vending machines saved for the current map.
SaveData()server
Called when data should be saved; saves the vending machines on the current map.
Saves every
nut_vend entity on the map to the schema data.Hooks
Implements hook ClockworkInitPostEntity
Called after Catwork has loaded all map entities; restores the saved vending machines.
PLUGIN:LoadNuttyVendingMachines()
server gamemodes/cwhl2rp/plugins/NutVendors/plugin/sv_plugin.lua:15Spawns the vending machines saved for the current map.
Reads plugins/nutVend/<map> from the schema data and restores each machine's position,
angles, active state and the stock of its four buttons. Entries without a position or angles are skipped.
See also
Implements hook SaveData
Called when data should be saved; saves the vending machines on the current map.
PLUGIN:SaveNuttyVendingMachines()
server gamemodes/cwhl2rp/plugins/NutVendors/plugin/sv_plugin.lua:38Saves every nut_vend entity on the map to the schema data.
Stores position, angles, active state and stock per machine under plugins/nutVend/<map>.