Configuration
Hal edited this page Aug 17, 2020
·
53 revisions
Commands used by remoteExec:
HALs_money_fnc_addFunds
HALs_store_fnc_addActionTrader
HALs_store_fnc_purchase
HALs_store_fnc_sell
HALs_store_fnc_systemChat
HALs_store_fnc_update
The following pseudo-code is any example of the configuration found in HALs\Addons\store\config.hpp
.
class cfgHALsStore {
containerTypes[] = {"LandVehicle", "Air", "Ship"};
containerRadius = 10;
currencySymbol = "$";
sellFactor = 0.5;
debug = 1;
class categories {
class category1 {
class classname1 {
price = 1337;
stock = 1;
description = "<t size='1' shadow='2' color='#FFB217'>yeet.</t>"
};
class classname2 {};
...
};
class category2 {};
...
};
class stores {
class store1 {
displayName = "RANDOM STORE NAME";
categories[] = {"category1", "category2", ...};
};
class store2 {};
...
};
};
The config name for an item must be the same as the item's classname in cfgWeapons
or cfgVehicles
. Please note that an item can only appear once in the categories
class.
Option | Description |
---|---|
containerRadius |
<SCALAR> 3D distance, in meters, a container must be from a trader to purchase items to. |
containerTypes[] |
<ARRAY> Sets the allowed types of useable containers. |
currencySymbol |
<STRING> Sets the symbol used when displaying money. |
sellFactor |
<SCALAR> Percentage of the buy price used to calculate the sell price [0, 1]. |
debug |
<SCALAR> Set to 1 to enable dumping information to the report file. Monitors when an item is purchased and when stock is updated. |
Option | Description |
---|---|
displayName |
<STRING> Sets the display name for the trader. |
categories[] |
<ARRAY> Sets the allowed categories for the trader (array of category classnames) |
Option | Description |
---|---|
displayName |
<STRING> Sets the display name for the category. |
picture |
<STRING> Sets the picture for the category. |
Option | Description |
---|---|
price |
<SCALAR> Sets the price for an item [0, 999999]. |
stock |
<SCALAR> Sets the total amount of this item which can be purchased [0, 999999]. |
description |
<STRING> Sets the description for an item. Overrides in game description. Supports structured text. |
The following pseudo-code is any example of the configuration found in HALs\Addons\money\config.hpp
.
class cfgHALsMoney {
debug = 0;
startingFunds = 1001;
oldManItemsPrice[] = {50, 150, 300, 600};
};
Option | Description |
---|---|
startingFunds |
<SCALAR> Sets the player's starting money [0, 999999]. |
oldManItemsPrice[] |
<ARRAY> Sets the money added when the corresponding old man money object is picked up. Money objects: Money_bunch , Money_roll , Money_stack and Money .[<SCALAR> price [0, 999999], <SCALAR> price [0, 999999], <SCALAR> price [0, 999999], <SCALAR> price [0, 999999] . |