-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathconfig.lua
43 lines (35 loc) · 1.69 KB
/
config.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Config,Locale = {},{} -- no touchey, thanks
Config.locale = "en"
Config.draw_distance = 25.0
Config.default_tax_rate = 0.03 -- default tax rate if per-business one is not set (default 3%, max = 1.0(100%))
Config.max_business = 2
Config.employee_payout_formula = function(earnings,employee_count) -- earnings = after tax | this is the amount that each employee will get, the remainder will go to the owner
return (earnings*0.4)/employee_count -- employees get 40% split up (owner is guaranteed 60%)
end
-- List of possible variables
-- {name} - name of the business
-- {address} - address of the business
-- {description} - desctiption of the business
-- {blipname} - custom blip name (default Config.blip.name)
-- {owner} - owner steamid (default nil)
-- {owner_rp_name} - owner RP name (default 'None')
-- {earnings} - business earnings/hr
-- {price} - business price
-- {stock} - business stock count
-- {stock_price} - business stock price
-- {taxrate} - business tax rate (in %, default = 3)
-- {id} - business ID
Config.display = {
{offset = 0.23, text = "~y~ {name}", scale = 1.5},
{offset = 0.0, text = "{address}; {description}", scale = 0.7},
{offset = -0.1, text = "~b~Owner: ~r~{owner_rp_name} ~b~Price: ~g~${price} ~s~(~r~{taxrate}% tax~s~)", scale = 1},
{offset = -0.21, text = "~b~Earnings: ~g~${earnings}/hr", scale = 1}
}
Config.blip = {
enabled = false,
color = 5, -- https://wiki.gtanet.work/index.php?title=Blips
sprite = 475, -- https://wiki.gtanet.work/index.php?title=Blips
scale = 0.5,
name = "Business"
}
Config.sell_percentage = 0.8 -- % from original price the player gets after selling business (1 = 100%, 0.5 = 50%)