Skip to content

🧷 Social Header Configuration

You can customize the social header cards that appear at the top of the loading screen. These cards allow users to quickly join your Discord, visit your Instagram, or check out other platforms.


JSON Structure

"socialHeaders": [
    { 
        "type": "discord", 
        "cardLabel": "Discord Server", 
        "cardInfo": "Join the discord to keep up with the latest on the FiveM server!", 
        "link": "https://discord.gg/dbFChqBh5u", 
        "buttonLabel": "Join",
        "enabled": true 
    }
]

Field Breakdown

Field Description
type Platform type (used to display the appropriate icon)
cardLabel The card's main title/header text
cardInfo Description shown below the header
link URL that opens when the "Join" or action button is clicked
buttonLabel Label of "Join" or action button
enabled Whether to show this social card on the loading screen

Multiple Platforms Supported

You can include multiple social cards by adding more objects to the socialHeaders array.

Supported type values

  • discord
  • instagram
  • telegram
  • youtube
  • tiktok

Custom (your own icon):

  • custom

Spelling Matters

The type value must be lowercase and spelled exactly as shown above to display the correct icon.

Social Media Card Preview

Custom Icon Support

You can use your own icon instead of the built-in ones by setting type to "custom" and providing an image path in the config.

Example: Tebex / Store Icon

"socialHeaders": [
    {
        "type": "discord",
        "cardLabel": "Discord Server",
        "cardInfo": "Join the discord to keep up with the latest on the FiveM server!",
        "link": "https://discord.gg/dbFChqBh5u",
        "buttonLabel": "Join",
        "enabled": true
    },
    {
        "type": "custom",
        "cardLabel": "Tebex Store",
        "cardInfo": "Purchase perks and content through our Tebex store!",
        "link": "https://your-tebex-link-here",
        "buttonLabel": "Shop Now",
        "enabled": true,

        "imagePath": "./assets/jpg/tebex.jpg",
        "imageWidth": "3vw",
        "imageHeight": "3vh"
    }
]

Custom Icon Fields

Field Type Required Description
imagePath string yes Path to your custom icon image (relative to your NUI resource folder).
imageWidth string optional Width of the icon. Accepts any valid CSS size (px, vw, vh, %, etc.).
imageHeight string optional Height of the icon. Accepts any valid CSS size (px, vw, vh, %, etc.).

Why imageWidth and imageHeight are exposed

Different icons will have different aspect ratios and visual weight. Since this script cannot guarantee that every custom image will automatically fit perfectly inside the button, you, the server owner, have full control over the icon size:

  • Use imageWidth and imageHeight to tweak how big the icon appears in the button
  • If omitted, a default size will be used, but this might not look ideal for all assets
  • This lets you adjust per-icon without editing the code
Custom Tebex Icon Example Preview

For best results:

  • SVG (preferred)

    • Sharp at any size
    • Perfect for logos
    • Small file size
  • PNG (transparent background preferred)

    • At least 256×256 or 512×512
    • Great for icons with soft edges or glow effects
    • Preserves transparency for cleaner UI visuals
  • JPEG / JPG (supported but not ideal)

    • Works fine if your image does not require transparency
    • Useful for rectangular logos or photos
    • Should be high resolution to avoid blurring

Avoid

  • Low-resolution PNG/JPEG images
  • Icons with solid white/black background when transparency is needed
  • Very wide or tall aspect-ratios that distort inside the social buttons