Cadburry ScriptsCadburry Scripts

Installation

Quality of life scripts for your FiveM server. Performance optimized resources that install in minutes, with free updates and support that actually answers.

Follow the steps below to properly install and configure the cad-citationsscript.

Step-by-Step Guide

  1. Download the latest update
    Get the resource from Keymaster or the Cfx Portal.

  2. Configure the Notepad
    Set up the player list options from the Configuration section.

  3. Add to your server.cfg
    Insert the following line into your server.cfg file:

    text
    ensure cad-citations
  4. You're all set!

Dependencies

Make sure the following requirements are met:

Database

  • Once script is started it will auto create tables in your database

  • For people porting from v0.8 and above run below sql

    sql
    ALTER TABLE citations
        ADD COLUMN officer_citizen_id VARCHAR(255) NOT NULL AFTER street_name,
        MODIFY COLUMN citizen_id VARCHAR(255) NOT NULL;

Inventory Items

ox_inventory

  • ox_inventory/data/items.lua

lua
['citationreceipt'] = {
	label = 'Citation Receipt',
	description = "Written document informing the individual of the violation.",
	weight = 100,
	consume = 0,
	stack = false,
	server = {
		export = 'cad-citations.useItem'
	}
},

['citation'] = {
	label = 'Citation Notepad',
	description = "Has many pages of citations for writing information of violations by a individual.",
	weight = 100,
	consume = 0,
	stack = false,
	server = {
		export = 'cad-citations.useItem'
	}
},
  • ox_inventory/web/images

qb-inventory / ps-inventory

  • qb-core/shared/items.lua

{% code fullWidth="false" %}

lua
citationreceipt = {
	name = 'citationreceipt',
	label = 'Citation Receipt',
	description = "Written document informing the individual of the violation.",
	weight = 10,
	type = 'item',
	image = 'citationreceipt',
	unique = true,
	useable = true,
	shouldClose = true,
	combinable = nil,
	server = {
		export = 'cad-citations.useItem'
	}
},

citation = {
	name = 'citation',
	label = 'Citation Notepad',
	description = "Has many pages of citations for writing information of violations by a individual.",
	weight = 100,
	type = 'item',
	image = 'citation',
	unique = true,
	useable = true,
	shouldClose = true,
	combinable = nil,
	server = {
		export = 'cad-citations.useItem'
	}
},

{% endcode %}

  • qb-inventory/html/images

qs-inventory

  • qs-inventory/shared/items.lua

{% code fullWidth="false" %}

lua
['citationreceipt'] = {
    ['name'] = 'citationreceipt',
    ['label'] = 'Citation Receipt',
    ['weight'] = 100,
    ['type'] = 'item',
    ['image'] = 'citationreceipt.png',
    ['unique'] = true,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'Written document informing the individual of the violation.'
},
['citation'] = {
    ['name'] = 'citation',
    ['label'] = 'Citation Notepad',
    ['weight'] = 100,
    ['type'] = 'item',
    ['image'] = 'citation.png',
    ['unique'] = true,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'Has many pages of citations for writing information of violations by a individual.'
},

{% endcode %}

  • qs-inventory/html/images

Last updated Cadburry Scripts