Installation

Prepare and install dependencies

Mandatory device, to have app working

OR

Framework dependencies (supported by current bridge)

For framework, you can either choose:

Download

Please make you downloaded your resource:

Run SQL query

You'll find .sql in the resource, otherwise you can use query below:

  CREATE TABLE
      `fd_mountme_devices` (
          `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
          `localId` varchar(50) NOT NULL,
          `owner` varchar(50) NOT NULL,
          `label` varchar(255) NOT NULL,
          `type` varchar(50) NOT NULL,
          `status` varchar(50) NOT NULL,
          `location` varchar(255) NOT NULL,
          `shareCode` varchar(50) NOT NULL,
          `coords` LONGTEXT NOT NULL,
          `heading` varchar(50) NOT NULL,
          `item` varchar(50) NOT NULL,
          `createdAt` int(11) NOT NULL,
          `access` LONGTEXT NOT NULL,
          `logs` LONGTEXT NOT NULL,
      PRIMARY KEY (`id`),
      UNIQUE KEY `id` (`id`)
  ) ENGINE = InnoDB AUTO_INCREMENT = 1 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci;

Configuration

Please ensure, that everything is configured as you like in config directory.

Add your new Items

Add items to ox_inventory/data/items.lua;

    ['cctv'] = {
        label = 'CCTV Ceiling 01',
        weight = 200,
        server = {
            export = "fd_mountme.placeDevice",
        }
    },
    ['cctv1'] = {
        label = 'CCTV Ceiling 02',
        weight = 200,
        server = {
            export = "fd_mountme.placeDevice",
        }
    },
    ['cctv2'] = {
        label = 'CCTV Wall 01',
        weight = 200,
        server = {
            export = "fd_mountme.placeDevice",
        }
    },
    ['spycam'] = {
        label = 'Spy Cam',
        weight = 200,
        server = {
            export = "fd_mountme.placeDevice",
        }
    },
    ['motion_sensor'] = {
        label = 'Motion Sensor',
        weight = 200,
        server = {
            export = "fd_mountme.placeDevice",
        }
    },

Start resource

Make sure, resource is started after ox_lib and oxmysql.

  ensure oxmysql
  ensure ox_lib
  ensure (lb-phone yseries)
  ...
  ensure fd_mountme

::