Export

The exports work both client and server side.

Hook into staff chat with another resource.

exports.Prefech_RPChat:TriggerMessage({ 
    type = 'Staff', 
    message = 'This is a staff message from a Server script.'
})

Send System messages from any resource.

exports.Prefech_RPChat:TriggerMessage({ 
    type = 'system', 
    message = 'This is a system message from a Server script.'
})

Send announcements from any resource.

exports.Prefech_RPChat:TriggerMessage({ 
    type = 'announce', 
    message = 'This is a system message from a Server script.'
})

Custom messages in chat.

exports.Prefech_RPChat:CustomTriggerMessage({ 
    target = source,
    message = 'JokeDevil has been transported to the Hospital.',
    icon = 'fas fa-ambulance',
    color = '#bed55a',
    name = 'Ambulance'
})