Character Screenshot Settings
SW Multicharacter allows players to immortalize their characters on the Multicharacter main screen and take photos of them with various fun photo effects.
How does the screenshot system work?
The screenshot system captures an image for each character. It uses Screenshot Basic script as infrastructure. It displays the player's name information on the right side of the screen, server information in the bottom left corner of the screen, and date and time information in the bottom right corner of the screen.
How do you configure the screenshot feature?
To configure the screenshot feature, edit the following settings in the config.lua file:
Note:
Config.Screenshot = {
Webhook = "", ---DISCORD WEBHOOK URL
ShowServerName = true, -- True: Server Name Active, False: Server Name Inactive
ServerName = "Roleplay", -- Server name
ServerSlogan = "Server Slogan", -- Server slogan
ShowCharacterInfo = true, -- True: Character Info Active, False: Character Info Inactive
TextStyle = {
Font = 0 -- Text font
}
}
How do you load the screenshot resource?
To use the screenshot feature, you need to load the screenshot-basic resource to your FiveM server:
- Download the screenshot-basic resource
- Upload the resource to your server's resources folder.
- Make sure the resource is started in your
server.cfgfile:ensure screenshot-basic.
Note:
For the screenshot feature to work and for your players to be able to take screenshots, you need to create a channel on your Discord server and add a webhook to it.
Note:
The screenshot feature requires the screenshot-basic script to be installed on your server. The feature will not work without this script.
How to Set Up a Webhook?
To create a webhook on your Discord server:
- Create a channel on your Discord server where screenshots will be saved, or select an existing channel
- Go to the channel settings
- Click on the "Integrations" section
- Select "Create Webhook"
- Give the webhook a name and add an avatar if you want
- Click on "Copy Webhook URL"
- Add this URL to the
Config.Screenshot.Webhookvariable
Note:
Do not share the webhook URL with anyone, otherwise unnecessary images may be sent to your server.