Redutzu's Scripts
  • â„šī¸Information
  • 🛒Store
  • đŸ’ģDiscord
  • 📚Resources
    • Redutzu MDT
      • Installation
      • Guides
        • Frameworks
        • Items
        • Localization
        • Images
        • Logs
        • Permissions
        • Bodycam
      • Exports/Events
        • Server Events
          • addDispatchToMDT
        • Server Exports
          • Incidents
          • Evidences
          • Warrants
          • Bolos
          • Citizens
          • Vehicles
          • Codes
          • Charges
          • Weapons
          • Announcements
          • Tags
        • Client Events
          • Open/Close MDT
        • Client Exports
      • Common Issues
    • Redutzu EMS
      • Installation
      • Guides
      • Exports
    • Redutzu Documents
      • Installation
      • Guides
      • Exports
Powered by GitBook
On this page
  • 1. AddJobDocument (Server-Side)
  • 2. CreateCustomDocument (Server-Side)

Was this helpful?

  1. Resources
  2. Redutzu Documents

Exports

1. AddJobDocument (Server-Side)

CreateThread(function()
	exports['redutzu-documents-esx']:AddJobDocument('mechanic', {
		colors = {
			background = 'rgb(255, 255, 255, .9)',
			header = 'rgb(255, 255, 255, .7)'
		},
		command = {
			enabled = true,
			name = '+mechanic_document',
			description = 'Display your document to nearby players'
		},
		item = {
			enabled = true,
			name = 'mechanic-card'
		},
		prop = {
			name = 'prop_fib_badge'
		},
		animation = {
			dict = 'paper_1_rcm_alt1-9',
			anim = 'player_one_dual-9',
			bone_index = 28422
		},
		information = {
			{ label = 'Job', value = 'job.label' },
			{ label = 'Grade', value = 'job.grade_label' },
			{ label = 'Date of birth', value = 'variables.dateofbirth' }
		},
		range = 5.0,
		time = 4.0
	})
end)

2. CreateCustomDocument (Server-Side)

RegisterCommand('custom-document', function(source, args, raw)
   exports['redutzu-documents-esx']:CreateCustomDocument(source, {
       information = {
          { label = 'Job', value = 'job.label' },
          { label = 'Rank', value = 'job.grade_label' },
          { label = 'Date of birth', value = 'variables.dateofbirth' }
       },
       removeBackground = true
   })
end, false)
PreviousGuides

Last updated 11 months ago

Was this helpful?

📚
This is how the document created using the code above will look