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.
Features
Simple, form, and complex card examples
Timeout handling with countdown
Custom styling support
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 buttonCreateMultiActionCard
: Card with multiple action buttonsCreateFormCard
: Card with input fields for user dataCreateComplexCard
: Card with custom layout and visual elementsCreateStyledCard
: 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.
Download / Source
GitHub: Link to Github Repository
Support / Feedback
Got questions or suggestions? Come hang out with us on Discord: PyroByte Discord
Made with care by the PyroByte team. Hope it helps someone out there
Code is accessible | Yes (Github, not Escrowed) |
Subscription-based | No |
Lines (approximately) | ~800 |
Requirements | None |
Support | Yes, in Discord |