Exports
Information regarding sending webhooks from another resource.
We provide exports that can be used to interact with/send webhooks through FiveM2Discord using any other resource you have on your server and the setup is pretty straight forward!
Required Params
Prop | Type | Default |
---|---|---|
CHANNEL | string | none |
NAME | string | SYSTEM |
MESSAGE | string | none |
IMAGE_URL | string | SYSTEM |
EXTERNAL | boolean | none |
Usage
You can call the SendWebhookLogs
event using the following method.
Example
Using this method if you wanted to for example log a commands usage you can do so like this