Commands

The utils.commands module was created to provided a standalone command system.

This removes the need for coding multiple commands when working on multi framework compatible projects.

Command permissions are stored with the utils user_accounts table within database.

All commands are registered server side, the client simply handles command chat suggestions.

Functions

get_suggestions()

Update the players chat suggestions.

Function

local function get_suggestions()
    TriggerServerEvent('boii_utils:sv:request_chat_suggestions')
end

exports('commands_get_suggestions', get_suggestions)
utils.commands.get_suggestions = get_suggestions

Example

--- Gets the command suggestions for players chat.
utils.commands.get_suggestions()

Last updated