# Installation



## Dependencies :

<details>

<summary>QBCORE</summary>

You will need the latest version of [qb-core](https://github.com/qbcore-framework/qb-core)

* Extract the contents of the archive to your resources folder.

- Start the resource near the top of your resources in your server.cfg.

</details>

***

## Inventories : &#x20;

<details>

<summary>QB-INVENTORY</summary>

Add the items below to the qb-core/shared/items.lua:&#x20;

```lua
    poptablet         = { name = 'poptablet',                label = 'Post OP Tablet',                weight = 100,       type = 'item',     image = 'poptablet.png',                                              unique = false, useable = true,     shouldClose = true,    combinable = nil,   description = 'Post OP Tablet.'},  
```

</details>

<details>

<summary>OX_INVENTORY</summary>

Add the items below into your ox-inventory/data/items.lua

```lua
	["poptablet"] = {
		label = "Post OP Tablet",
		weight = 100,
		stack = true,
		close = true,
		description = "Post OP Tablet.",
		client = {
			image = "poptablet.png",
		}
	},
```

Add this into ox\_inventory/modules/items/client.lua

```lua
Item('poptablet', function(data, slot)
	ox_inventory:useItem(data, function(data)
		if data then
			TriggerEvent("zat-postop:client:OpenTablet")
		end
	end)
end)
```



</details>

<details>

<summary>QS-INVENTORY</summary>

Add the items below into your qs-inventory/shared/items.lua

```lua
['poptablet'] = {
    ['name'] = 'poptablet',
    ['label'] = 'Post OP Tablet',
    ['weight'] = 100,
    ['type'] = 'item',
    ['image'] = 'poptablet.png',
    ['unique'] = false,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'Post OP Tablet.'
},

```

Add this into qs-inventory/server/custom/misc/CreateUseableItem.lua

```lua
CreateUsableItem('poptablet', function(source, item)
    local src = source
    TriggerClientEvent('zat-postop:client:OpenTablet', src)
end)

```

</details>



***

<details>

<summary>ZAT - DIALOG (in case you use it) : </summary>

Add this to shared/config.lua : \


```lua
    -- Post OP
    {
        img         = 'https://i.ibb.co/1GLRyMSn/Capture-d-cran-2025-08-27-143742.png',
        ped         = 's_m_m_ups_01',
        anim        = 'CODE_HUMAN_MEDIC_TIME_OF_DEATH',
        coords      =  vector4(-413.79, -2799.9, 5.0, 320.08),
        job         = "all", -- { ["police"] = 0, ["ambulance"] = 0}  if you are using target
        gang        = "all", -- { ["ballas"] = 2, ["thelostmc"] = 0}  if you are using target
        groups      = "all", -- { ["police"] = 2, ["ambulance"] = 0}  if you are using intearaction
        firstname   = 'ASTA',
        lastname    = 'CLEAN',
        rep         = 0,
        mission     = 'postOp',
        text        = 'Hi there, how can I help you ?',
        buttons     = {
            {
                text= 'I want to work',
                rep = 0,
                answer ='We have a critical batch of high-priority parcels that must be delivered to multiple corporate clients and secure facilities across the city. As a trusted member of the Post OP logistics division, your role is vital in ensuring each package reaches its destination on time, undamaged, and without drawing unwanted attention. Efficiency, discretion, and punctuality are non-negotiable.',
                buttons={{
                        text = 'Sign In',
                        shop =false,
                        rep = 0,
                        action= {
                            isServer= false,
                            event= 'zat-postop:client:Signin',
                            data= {}
                        },
                        canInteract = CanToggleSignIn(),
                    },
                    {
                        text = 'Leave Conversation',
                        shop =false,
                        rep = 0,
                        action= {
                            isServer= false,
                            event= 'zat-dialog:client:HideUi',
                            data= {}
                        },
                        canInteract = true
                    }
                },
                canInteract = true
            },
            {
                text = 'Cancel Mission',
                rep = 0,
                shop =false,
                action= {
                    isServer= false,
                    event= 'zat-postop:client:StopWorking',
                    data= {}
                },
                canInteract = true
            },
        },
        items={

        }
    }, 
```

</details>

***

## ADDITIONAL SETUP

<details>

<summary>IMAGES</summary>

* Copy the contents of the `[images]` folder into your inventory's image directory.

</details>

## ENSURE RESOURCES

* [ ] ensure zat-groups
* [ ] ensure zat-ui
* [ ] ensure zat-postop

