Skip to content

CommandObject

Variables

CommandObject.Name

CommandObject.Name: string

Name of the command

CommandObject.Description

CommandObject.Description: string

Description of the command

CommandObject.PermissionLevel

CommandObject.PermissionLevel: number

Permission level of the command

CommandObject.Arguments

CommandObject.Arguments: {}

Table of command arguments

CommandObject.Options

CommandObject.Options: {}

Options of the command

CommandObject.Metadata

CommandObject.Metadata: {}

Metadata of the command

CommandObject.Functions

CommandObject.Functions: {}

Command functions

CommandObject.Hooks

CommandObject.Hooks: {}

Command hooks

Functions

CommandObject:SetName()

CommandObject:SetName(Name: string) -> CommandObject

Sets the name of the CommandObject

CommandObject:SetDescription()

CommandObject:SetDescription(Description: string) -> CommandObject

Sets the description of the CommandObject

CommandObject:SetPermissionLevel()

CommandObject:SetPermissionLevel(PermissionLevel: number) -> CommandObject

Sets the permission level of the CommandObject

CommandObject:SetOptions()

CommandObject:SetOptions(Options: {}) -> CommandObject

Sets the options of the CommandObject

CommandObject:SetMetadata()

CommandObject:SetMetadata(Metadata: {}) -> CommandObject

Sets the metadata of the CommandObject

CommandObject:SetExecuteFunction()

CommandObject:SetExecuteFunction(Callback: (Player: Player,...any) -> ReturnObject?) -> CommandObject

Sets the execute callback of the CommandObject

CommandObject:SetHook()

CommandObject:SetHook(HookName: string,callback: (...any) -> any) -> CommandObject

Sets the specific hook to the callback
Back to top