Tutorials (Code)

How create new activity?

Go to the config.lua file and find Config.CompaniesJobs.

Add this code to the table

Data info

  • Label - The name of the activity that you will see in the company administration.

  • Name - A unique name that you can use when creating a new job.

  • Public - Whether it will be available or will have to be set by admin.

  • Price - The price it will cost.

  • Tax - Daily payment per activity

  • Tax name - For accounting in company administration.

{
        label="My new job",
        name="newjob",
        public=true,
        price=0,
        tax=5000,
        taxname="Payment for new job"
 },

How to add a company overview for a police job.

Go to the config.lua file and find Config.CompaniesPoliceJobs

Here you set up an overview for police work or for a government office.

How create new crafting table for warehouse?

You go to config.lua and find

You add the code to expand the table and set the items you need for production.

An unlimited number of production items can be added for one table.

We still need to bring crafting to the table.

Go to pls_companies/server/warehouse_data.lua

Find WarehouseData.Furniture

In WarehousesData.Furniture you will see the distribution in the following way.

This [1] divides the levels of the warehouse.

What if the furniture is storage?

Just add the data settings

Example

Last updated