Contracts
This file represents the Contracts configuration file (sh_contracts.lua)
Settings
Config.Contracts.Settings = {
maxContractsActive = 3, -- The maximum amount of contracts available at the same time (It includes started and non started contracts),
generationInterval = {min = 5000, max = 15000}, -- The time between new contracts appearing in ms.
startInterval = {min = 1000, max = 1500} -- The time the contract takes to start after being generated.
}Contracts
Structure
["ID OF THE CONTRACT"] = { -- ID of the contract
title = "NAME OF THE CONTRACT", -- Title of the contract
description = "DESCRIPTION OF THE CONTRACTS", -- Description of the contract
gangsRequired = 1, -- The amount of joined gangs required to start. (If not enough joined gangs will get their coins refunded).
policeRequired = 0, -- The amount of police online for the contract to generate (The count will also be checked when it starts and if it isn't reached the joined gangs will get their coins refunded).
price = 0, -- The price of gang coins to join.
requiredReputation = { -- Required reputation of various dealers to join the contract.
-- ["dealer_name"] = requiredDealerReputation,
},
requiredTasks = { -- Required completed tasks of various dealers to join the contract.
-- ["dealer_name"] = { list of needed tasks }
},
timeToComplete = 600000, --TIME TO COMPLETE THE CONTRACT IN MS
steps = { -- Steps and their data.
-- init and finish steps are crucial, without both of these steps the contract will break and the script will have issues.
["init"] = { stepData here }, --Look at the step structure
["finish"] = { stepData here } --Look at the step structure
}
}Steps
Blips
Vehicles
Entities
Peds
Target
Customizing the experience
Modyfing Existing Entities
Accessing Entity Handles
Last updated