gfxr-idcard

Western-themed identification card system. Displays player information on a parchment-style ID card with mugshot support.

Features

  • Western/1899-era themed design

  • Automatic mugshot capture on first character load

  • Compatible with all frameworks (VORP, RSG, RedEM)

  • Configurable theme and locale support

  • Sheriff/Police mugshot authorization

Dependencies

Dependency
Description

gfxr-bridge

Framework abstraction layer

screenshot-basic

Required for mugshot capture

Installation

  1. Add to server.cfg:

    ensure gfxr-bridge
    ensure screenshot-basic
    ensure gfxr-idcard
  2. Run the SQL migration:

    -- Import sql/install.sql
    CREATE TABLE IF NOT EXISTS `gfxr_mugshots` (
        `id` INT(11) NOT NULL AUTO_INCREMENT,
        `identifier` VARCHAR(255) NOT NULL,
        `mugshot` TEXT NOT NULL,
        `taken_by` VARCHAR(255) DEFAULT NULL,
        `created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
        PRIMARY KEY (`id`),
        UNIQUE KEY `identifier` (`identifier`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  3. Configure:

    • config/client_config.lua - Theme, mugshot settings

    • config/locale.lua - Language translations

Configuration

client_config.lua

Commands

Command
Description

/idcard

Toggle ID card display

/takemugshot

Take mugshot of nearest player

/takemugshot [id]

Take mugshot of player with specified ID

/selfmugshot

Take your own mugshot

Exports (Client)

Exports (Server)

Events

Client

Server

Mugshot Upload Server

Your upload endpoint must return the following format:

Example PHP Endpoint

Data Sources

UI Field
Bridge Export
Framework Source

Full Name

GetPlayer()

firstname, lastname

Date of Birth

GetPlayer()

dateofbirth / birthdate

Occupation

GetPlayerJob()

job.label

Mugshot

ExecuteSql()

gfxr_mugshots table

ID Number

GetIdentifier()

Generated via hash

Notes

  • Auto mugshot capture triggers when a character loads for the first time

  • If no mugshot exists, it is captured silently without notifying the player

  • The ID number is generated by hashing the character identifier (stays consistent)

  • Players with Sheriff/Police jobs can take mugshots of other players

Last updated