Agency Docs
QBESXStandalone

Agency-Chat Dışa Aktarımlar & API

FiveM sunucunuz için Agency tasarımında, Agency Notify ve Agency Progressbar ile aynı görünüme sahip sohbet.

v1.2.0Ücretli5 Sayfalar

01Client Exportları

ExportAçıklama
exports.chat:addMessage(message)Adds a message to the own chat, same table as chat:addMessage (args, color, template). Optional agency = { tag, tone } gives it the Agency tag look.
exports.chat:addSuggestion(name, help, params)Adds a command suggestion with help text and parameters, same as chat:addSuggestion.
exports.chat:isOpen()true while the chat input is open.

02Server Exportları

ExportAçıklama
exports.chat:addMessage(target, message)Sends a message to one player (-1 for everyone), same table as chat:addMessage.
exports.chat:registerMessageHook(function(source, outMessage, hookRef) end)Sees and changes every typed message before it goes out, like the default chat. hookRef.cancel() stops it.
exports.chat:registerMode({ name, displayName, color, seObject, cb })Adds a chat mode players switch to with Tab, like the default chat.

03Eventler

AdTarafAçıklama
chat:addMessageClientDefault chat event, works unchanged. TriggerClientEvent('chat:addMessage', source, { args = { 'SYSTEM', 'Hello' } }).
chatMessageClientOld default chat event (author, color, text), works unchanged.
chat:addSuggestionClientDefault event for one command suggestion. chat:addSuggestions and chat:removeSuggestion work as well.
chat:addTemplateClientDefault event for message templates, works unchanged.
chat:addMode / chat:removeModeClientDefault events for chat modes, work unchanged.
chat:clearClientClears the chat of this player.

Bu sayfadan sonra hâlâ takıldın mı? Buradan desteğimiz devralıyor.