Documentation Index
Fetch the complete documentation index at: https://docs.revoscripts.com/llms.txt
Use this file to discover all available pages before exploring further.
Export List
CreateCard
Generic export for any card key insideConfig.Cards.
source(number): Player server IDcardType(string): Card key fromConfig.CardsdeductMoney(boolean, optional): Defaults totrue
- Returns
trueif the request was accepted - Returns
falseif the card key is invalid or disabled truecharges the player normallyfalseissues the card without charging
GetPurchasableCards
Returns the currently enabled and purchasable cards from config.typenamedesigncost
Example Usage
Charge player normally:How Exports Work
These exports trigger mugshot capture first, then create the card through the normal script flow. Complete flow when you call a creation export:- Export called -> Triggers
revo_idcard:requestMugshotAndCreateIDclient event - Client-side -> Handles mugshot capture and sends data back via
revo_idcard:receiveMugshotAndCreateID - Server-side -> Receives mugshot data and triggers
revo_idcard:issueRealIDevent - Final creation ->
issueRealIDhandles player data fetching and actual item creation
Creation exports are fire-and-forget. They start the process immediately, while success or failure is handled through the script’s normal internal flow.
Important Notes
cardTypemust exist inConfig.Cards- Disabled cards return
falseand will not be issued - Custom cards also need matching inventory item definitions
CreateCardreplaces the need to document per-card wrapper exports- The player must have enough inventory space for the card to be created
- Money deduction is optional and defaults to enabled
- These exports work with all supported inventory systems:
ox_inventory,qb-inventory,qs-inventory, andqs-advancedinventory