Exports and Events

CreateDocument

With following event you are able to create document for player.

  • documentType string

  • photo string

TriggerServerEvent('p_documents:CreateDocument', {
   type = documentType,
   photo = photo
})

Example of Usage

local documentType = 'idcard' -- idcard / driver / weapon / doj / mechanic
local photo = exports["MugShotBase64"]:GetMugShotBase64(PlayerPedId(), false)
TriggerServerEvent('p_documents:CreateDocument', {
   type = type,
   photo = photo
})

ShowBusinessCard

With this event you can show business card for nearest players.

TriggerServerEvent('p_documents:showBusinessCard')

ShowBadge

With this event you can show badge for nearest players.

TriggerServerEvent('p_documents:showBadge')

Last updated