All exports are server-side only and cannot be called from client-side scripts
Available Exports
CreateRealID
Creates a real ID card for the specified player.playerSource
(number): The player’s server ID
CreateDriverLicense
Creates a driver license for the specified player.playerSource
(number): The player’s server ID
CreateWeaponLicense
Creates a weapon license for the specified player.playerSource
(number): The player’s server ID
Integration Example
Admin Command Example
Here’s a complete example of an admin command that gives a driver license to a player:- Proper argument validation
- Debug logging for troubleshooting
- Error handling for invalid inputs
- Using the export to create the license
- Feedback to admin and target player (from ID Card script)
How Exports Work
The exports trigger a client-side event that initiates the mugshot capture and ID card creation process. The system works asynchronously through a client-server communication flow. Complete flow when you call an export:- Export called → Triggers
revo_idcard:requestMugshotAndCreateID
client event - Client-side → Handles mugshot capture and sends data back via
revo_idcard:receiveMugshotAndCreateID
- Server-side → Receives mugshot data and triggers
revo_idcard:issueRealID
event - Final creation →
issueRealID
handles player data fetching and actual item creation
The exports are fire-and-forget - they start the process but don’t provide immediate feedback. Success/failure is handled through the internal event system.
Notes
- The player must have sufficient inventory space for the card to be created
- Cards are created with default settings as configured in the main config file
- These exports work with all supported inventory systems (ox_inventory, qb-inventory, qs-inventory)