Client Functions

SquidScript Client Functions

We have a wide variety of built-in functions for interacting with Squidhack and its different managers.

Toggle a Module

lua
-- Toggle a module
local toggleResult = squidhack.client.toggleModule("exampleModule")
if toggleResult ~= nil then
    print(toggleResult)
else
    print("Module not found.")
end

Module State

lua
-- Get the state of a module
local moduleState = squidhack.client.getModuleState("exampleModule")
if moduleState ~= nil then
    print("Module State: " .. moduleState)
else
    print("Module not found.")
end

Enable a Module

lua
-- Enable a module
local enableResult = squidhack.client.enableModule("exampleModule")
if enableResult ~= nil then
    print(enableResult)
else
    print("Module not found.")
end

Disable a Module

lua
-- Disable a module
local disableResult = squidhack.client.disableModule("exampleModule")
if disableResult ~= nil then
    print(disableResult)
else
    print("Module not found.")
end

Add a Friend

lua
-- Add a friend
local addFriendResult = squidhack.client.addFriend("playerName")
if addFriendResult ~= nil then
    print(addFriendResult)
else
    print("Failed to add friend.")
end

Remove a Friend

lua
-- Remove a friend
local removeFriendResult = squidhack.client.removeFriend("playerName")
if removeFriendResult ~= nil then
    print(removeFriendResult)
else
    print("Failed to remove friend.")
end