How to

How to set up origen shops?

--- Job Settings
job = 'police', -- Optional [If set access compare current job with this]
job_gradeup = 1, -- Optional [If set compare job names and playerGrade > gradeUp]
job_gradedown = 3, -- Optional [If set compare job names and playerGrad < gradeDown]

--- Gang Settings (same as job)
gang = 'origen',
gang_gradeup = 0,
gang_gradedown = 3,

--- If all data is set the algorithm compares:
-- 1: Job names (or gang)
-- 2: Job grade up (or gang)
-- 3: Job grade down (or gang)

--||:Example Shop:||
['origen_job'] = {
    label = 'ORIGEN POLICE TEST',
    job = 'police', -- or gang = 'origen',
    job_gradeup = 1, -- or gang_grade = 0,
    job_gradedown = 3, -- or gang_grade = 0,
    marker = {
        type = 20,
        size = vector3(0.3, 0.3, 0.3),
        color = {r = 0, g = 0, b = 0, a = 255},
    },
    pos = vector3(-70.92, -813.53, 326.18),
    items = Config.ShopItems['24-7']
}

How to change default inventory take amount?

Go to origen_inventory/config.lua and find

---------------------------------------
-------- INVENTORY SYSTEMS -------------
----------------------------------------
Config.DefaultItemAmount = 0 -- default amount when you add/remove/buy item from inventory

How to fix LoadInventory error?

Make sure you read the IMPORTANT hints on Installation

How to fix attempt to index a nil value (save)? (ESX)

Install overrides functions located on installation page.

How to edit clothes?

Clothing Inventory Configuration Guide

In this guide, you will learn how to configure clothing on your server using the origin_inventory/config/clothes.lua file.

This is required if you have custom clothing on your server.

  • Config.Clothings.Standalone: ​​This section organizes clothing by whether it is for men or women, and by categories such as masks, shoes, etc. You do not need to modify anything here. What this section is for will be explained later.

  • Config.Clothings.Variations: These are basic settings that are best left as is, as they do not need to be changed for the server to work properly.

  • Config.Clothings.Drawables: This is where we configure how clothing is displayed in the game.

    • Drawable: This section tells the game which body part each item of clothing belongs to, so it should not be modified.

    • Table: If you enable Standalone, the game will use the clothing configured in that section. If you don't want it to be used, you can change the value from "true" to "false".

    • Emote: This controls the animation that the character makes when putting on or taking off clothes. Don't modify this part unless you know what you're doing.

    • Extra: This is the section where you can change what clothes will be displayed instead of the default. This is where you can adjust:

      • Id: This is the number that identifies the item of clothing. For example, if you want a shirt to appear bare-chested when you take off your character, you would set the number that corresponds to that option on your server.

      • Tex: This number indicates the color or texture of the item of clothing. For example, if you want boxers to be a specific color, you would change this value.

      Don't forget to check that the Drawable numbers are correct before making any changes.

Credits to Sr. Asorey for this documentation snippet ;)

Last updated