Summary

Hooks

Called after Catwork has loaded all map entities; restores the saved vending machines.
Spawns the vending machines saved for the current map.
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

PLUGIN:ClockworkInitPostEntity()

server gamemodes/cwhl2rp/plugins/NutVendors/plugin/sv_hooks.lua:7

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:15

Spawns 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:38

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

Stores position, angles, active state and stock per machine under plugins/nutVend/<map>.

See also

Defined in