[FREE] Pyro Adaptive Cards Boilerplate — Deferral UX

card

We’re releasing a simple, open-source boilerplate for integrating Adaptive Cards into your FiveM server’s deferral (connection) process.

This boilerplate has an example implementation of the Adaptive Cards and some more advanced versions.

:star2: Features

  • :card_index: Simple, form, and complex card examples
  • :hourglass_flowing_sand: Timeout handling with countdown
  • :art: Custom styling support
  • :brick: Modular file structure for easy tweaks

Everything is commented and example-driven, so you can adapt it to your needs. You’ll find:

  • Sample welcome and recovery cards already implemented in sv_main
  • Helper functions in functions.lua (with different types of cards you can use)

Adaptive Card types included in the boilerplate:

  • CreateSimpleCard: Basic card with a title, message, and single button
  • CreateMultiActionCard: Card with multiple action buttons
  • CreateFormCard: Card with input fields for user data
  • CreateComplexCard: Card with custom layout and visual elements
  • CreateStyledCard: Card that utilizes Config.Styles for consistent styling across the application

No measurement of performance was made due to the fact that deferrals run on player joining.

We go over everything in more detail on the GitHub README, so check that out if you want to dig deeper.

:inbox_tray: Download / Source

:link: GitHub: Link to Github Repository

:speech_balloon: Support / Feedback

Got questions or suggestions? Come hang out with us on Discord: :link: PyroByte Discord

Made with care by the PyroByte team. Hope it helps someone out there :v:

Code is accessible Yes (Github, not Escrowed)
Subscription-based No
Lines (approximately) ~800
Requirements None
Support Yes, in Discord
3 Likes