Installation

Basic installation instructions for this resource

WARNING: Resource need to be named pls_mower in order to work properly!

  1. Install dependencies -> Ensure all dependencies and make sure they are running smooth and clean

  2. Add attached files from INSTALATION file -> This files are critical for resource usage, so make sure you installed them rightly

  3. BRIDGE configuration -> Navigate to pls_mower/BRIDGE/config.lua and set your framework on line 18 to "ESX" -> If you using older version of es_extended, please set BRIDGE.ESXOld to true on line 27

--[[

  ____       _     _                               __ _       
 |  _ \     (_)   | |                             / _(_)      
 | |_) |_ __ _  __| | __ _  ___    ___ ___  _ __ | |_ _  __ _ 
 |  _ <| '__| |/ _` |/ _` |/ _ \  / __/ _ \| '_ \|  _| |/ _` |
 | |_) | |  | | (_| | (_| |  __/ | (_| (_) | | | | | | | (_| |
 |____/|_|  |_|\__,_|\__, |\___|  \___\___/|_| |_|_| |_|\__, |
                      __/ |                              __/ |
                     |___/                              |___/ 

]]--

local IS_SERVER = IsDuplicityVersion()

BRIDGE = {}

BRIDGE.Framework = "ESX" -- ESX / QB / OX

-- Supported inventories
-- ox_inventory  - https://github.com/overextended/ox_inventory
-- qb_inventory -  https://docs.qbcore.org/qbcore-documentation/
-- quasar_inventory - https://docs.quasar-store.com/assets-and-guides/inventory

BRIDGE.Inventory = "ox_inventory"

BRIDGE.ESXOld = false -- Set to true, if you're using older version of es_extended

BRIDGE.Target = "ox_target"  -- ox_target / qb_target

--[[ 
  _________                                        .__    .___      
 /   _____/ ______________  __ ___________    _____|__| __| _/____  
 \_____  \_/ __ \_  __ \  \/ // __ \_  __ \  /  ___/  |/ __ |/ __ \ 
 /        \  ___/|  | \/\   /\  ___/|  | \/  \___ \|  / /_/ \  ___/ 
/_______  /\___  >__|    \_/  \___  >__|    /____  >__\____ |\___  >
        \/     \/                 \/             \/        \/    \/ 
]]--

if IS_SERVER then
    BRIDGE.Notify =  function(playerId, notifyData)
        -- notifyData.title = NOTIFY TITLE
        -- notifyData.description = NOTIFY DESCRIPTION
        -- notifyData.type = NOTIFY TYPE  | TYPES: success, inform, error
        lib.notify(playerId, notifyData)
    end
end


--[[
_________ .__  .__               __           .__    .___      
\_   ___ \|  | |__| ____   _____/  |_    _____|__| __| _/____  
/    \  \/|  | |  |/ __ \ /    \   __\  /  ___/  |/ __ |/ __ \ 
\     \___|  |_|  \  ___/|   |  \  |    \___ \|  / /_/ \  ___/ 
 \______  /____/__|\___  >___|  /__|   /____  >__\____ |\___  >
        \/             \/     \/            \/        \/    \/ 
]]--

if not IS_SERVER then
    BRIDGE.Notify = function(notifyData)
        -- notifyData.title = NOTIFY TITLE
        -- notifyData.description = NOTIFY DESCRIPTION
        -- notifyData.type = NOTIFY TYPE  | TYPES: success, inform, error
        lib.notify(notifyData)
    end
end

WARNING: Just like that, you're set up and ready to run!

Last updated