3--! \brief Hooks
module for FrameworkZ. Adds functions to be called on certain events.
4--! \class FrameworkZ.Hooks
6FrameworkZ.Hooks = FrameworkZ.Foundation:NewModule(FrameworkZ.Hooks, "Hooks")
9 function FrameworkZ.Hooks:PreInitializeClient(isoPlayer)
10 local username = isoPlayer:getUsername()
12 FrameworkZ.Timers:Simple(0.1, function()
13 if not VoiceManager:playerGetMute(username) then
14 VoiceManager:playerSetMute(username)
18 isoPlayer:clearWornItems()
19 isoPlayer:getInventory():clear()
21 local gown = isoPlayer:getInventory():AddItem("Base.HospitalGown")
22 isoPlayer:setWornItem(gown:getBodyLocation(), gown)
24 local slippers = isoPlayer:getInventory():AddItem("Base.Shoes_Slippers")
25 local color = Color.new(1, 1, 1, 1);
38 bP:RestoreToFullHealth();
40 if bP:getStiffness() > 0 then
42 isoPlayer:getFitness():removeStiffnessValue(BodyPartType.ToString(
bP:getType()))
65 if
module == "FZ_HOOKS" then
66 if
command == "initialize_client" then
67 local onlineID = args.onlineID
68 local
isoPlayer = getPlayerByOnlineID(onlineID)
void FrameworkZ Foundation()
Hooks module for FrameworkZ. Adds functions to be called on certain events.
void OnClientCommand(module, command, player, args)
void PreInitializeClient(isoPlayer)