Agency Docs
QBESXStandalone

Agency-Chat التصديرات وواجهة البرمجة

شات سيرفر FiveM الخاص بك بتصميم Agency، وبنفس مظهر Agency Notify و Agency Progressbar.

v1.2.0مدفوع5 صفحات

01تصديرات العميل

التصديرالوصف
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.

02تصديرات الخادم

التصديرالوصف
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.

03الأحداث

الاسمالجهةالوصف
chat:addMessageالعميلDefault chat event, works unchanged. TriggerClientEvent('chat:addMessage', source, { args = { 'SYSTEM', 'Hello' } }).
chatMessageالعميلOld default chat event (author, color, text), works unchanged.
chat:addSuggestionالعميلDefault event for one command suggestion. chat:addSuggestions and chat:removeSuggestion work as well.
chat:addTemplateالعميلDefault event for message templates, works unchanged.
chat:addMode / chat:removeModeالعميلDefault events for chat modes, work unchanged.
chat:clearالعميلClears the chat of this player.

ما زلت عالقًا بعد هذه الصفحة؟ فريق الدعم يتولّى الأمر من هنا.