-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathConfig.lua
More file actions
219 lines (213 loc) · 7.61 KB
/
Config.lua
File metadata and controls
219 lines (213 loc) · 7.61 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
Config = {}
---------------
Config.Framework = 'oldesx' --- oldqb newqb newesx oldesx standalone
-------------- Marker
Config.Marker = {
{
pedname = 'g_m_y_salvagoon_01' ,
coord = vector3(-178.59, -1341.20, 30.30) ,
heading = 94.0 ,
Theme = 'random', -- purple blue orange random
label = ' Presse ~INPUT_CONTEXT~ To Open Menu' ,
FacingTheBot = vector3(-179.56, -1341.29, 30.30) , --> Player Will Set Coord here to Better Give Case Animtion
FBHeading = -90.0 ,
},
{
pedname = 'g_m_y_salvagoon_01' ,
coord = vector3(1142.597778, -792.421997, 56.587524) ,
heading = 84.0 ,
Theme = 'random', -- purple blue orange random
label = ' Presse ~INPUT_CONTEXT~ To Open Menu' ,
FacingTheBot = vector3(1141.833008, -792.461548, 56.587524) , --> Player Will Set Coord here to Better Give Case Animtion
FBHeading = -90.0 ,
},
{
pedname = 'g_m_y_salvagoon_01' ,
coord = vector3(154.470337, -1934.782471, 18.776611) ,
heading = 54.0 ,
Theme = 'random', -- purple blue orange random
label = ' Presse ~INPUT_CONTEXT~ To Open Menu' ,
FacingTheBot = vector3(153.876923, -1934.281372, 18.776611) , --> Player Will Set Coord here to Better Give Case Animtion
FBHeading = 230.0 ,
},
}
Config.Blips = {
{
coord = vector3(-178.59, -1341.20, 30.30) ,
Sprite = 78 ,
Text = 'Money Laundry' ,
Colour = 1 ,
Scale = 0.9 ,
},
{
coord = vector3(1142.597778, -792.421997, 57.587524) ,
Sprite = 78 ,
Text = 'Money Laundry' ,
Colour = 1 ,
Scale = 0.9 ,
},
{
coord = vector3(154.470337, -1934.782471, 18.776611) ,
Sprite = 78 ,
Text = 'Money Laundry' ,
Colour = 1 ,
Scale = 0.9 ,
},
}
Config.DealerCarBlip = {
Sprite = 272 ,
Text = 'Dealer' ,
Colour = 2 ,
RouteColour = 81 ,
Scale = 1.1 ,
}
----------------
Config.Items = {
{
name = 'dirtymoney' , -- change to your real name item of black money if your black money is item if its not change typ to money
label = 'Black Money',
typ = 'item',-- or money
dealersprofit = 20 , --%
value = 1000 ,-- 1 Black Money = 1000 $ - 20 % dealers profit = 800$ for player
},
{
name = 'gold' ,
label = 'Gold',
typ = 'item',
value = 1000 , -- 1 gold = 1000 $ - 20 % dealers profit = 800$ for player
dealersprofit = 20 , --%
},
{
name = 'diamond',
label = 'Diamond',
typ = 'item',
value = 1000 , -- 1 diamond = 1000 $ - 20 % dealers profit = 800$ for player
dealersprofit = 20 , --%
},
}
-------------------
Config.DealerCars = { -- you can add more if you want
{
coord = vector3(-1293.57, -1288.06, 3.87) ,
heading = 288.4 ,
pickup = vector3(-1295.98, -1288.91, 3.23) ,
car = 'kuruma2',
label = ' Presse ~INPUT_CONTEXT~ To PickUp Money' ,
},
-- {
-- coord = vector3(-1899.86, -278.27, 48.92) ,
-- heading = 320.0 ,
-- pickup = vector3(-1901.46, -280.26, 48.19) ,
-- car = 'kuruma2',
-- label = ' Presse ~INPUT_CONTEXT~ To PickUp Money' ,
-- },
-- {
-- coord = vector3(1208.84, -728.29, 58.62) ,
-- heading = 8.0 ,
-- pickup = vector3(1209.08, -730.82, 57.79) ,
-- car = 'kuruma2',
-- label = ' Presse ~INPUT_CONTEXT~ To PickUp Money' ,
-- },
}
----------------ui
Config.ServerName = 'Canx RolePlay'
Config.WelcomeText = 'With CanX money laundry system you can make deals with the mafia or gangsters to launder your money or jewelry, and use legal money in the city without any problems'
Config.WhoWeAre = 'We’re here to connect you with mafia or gangsters to help you turn illegal money into legal money. Once you choose the amount and type of cash you have, we’ll mark the dealers on your map. You’ll have just 20 minutes to reach them and complete the deal. Be careful make sure the police aren’t following you.'
Config.MoneyProp = 'prop_cash_case_01'
---------- Notif
Config.Notification = {
['getmoney'] = 'I sent the location of the dealer. Be quick and go get your clean money.' ,
['erorr'] = ' you Cant Clean This Amount Of Money' ,
['done'] = ' you Get Clean Money Now' ,
['ColdDown'] = 'We are busy now'
}
----------- cl
function SendNotifctionCL( txt )
TriggerEvent('canx_moneylaundry:SimpleNotif', txt)
end
-------------- Server Functions
function SendNotifction(playerId , txt )
if playerId then
TriggerClientEvent('canx_moneylaundry:SimpleNotif', playerId, txt)
end
end
function AddPlayerReward(source ,count)
local lib = GetFrameworkObject()
Wait(300)
if Config.Framework == 'standalone' then
return true
elseif Config.Framework == "oldesx" or Config.Framework == "newesx" then
local xPlayer = lib.GetPlayerFromId(source)
xPlayer.addMoney(count)
return true
else
local Player = lib.Functions.GetPlayer(source)
lib.Functions.AddMoney('cash', count )
return true
end
end
function RemovePlayerDirtyMoney(source ,count , isItem , item )
local lib = GetFrameworkObject()
Wait(300)
if Config.Framework == 'standalone' then
return 0
elseif Config.Framework == "oldesx" or Config.Framework == "newesx" then
local xPlayer = lib.GetPlayerFromId(source)
if isItem then
return xPlayer.removeInventoryItem(item , count )
else
return xPlayer.removeAccountMoney('black_money', count)
end
else
local player = lib.Functions.GetPlayer(source)
if isItem then
return exports['qb-inventory']:RemoveItem(source, item, count , false, 'qb-inventory:Remove')
else
return Player.Functions.RemoveMoney('blackmoney', count)--- i dont think this will work in qb use item for dirty money
end
end
end
function GetPlayerDirtyMoney(source , isItem , itemname )
local lib = GetFrameworkObject()
Wait(300)
if Config.Framework == 'standalone' then
return 0
elseif Config.Framework == "oldesx" or Config.Framework == "newesx" then
local xPlayer = lib.GetPlayerFromId(source)
if isItem then
return xPlayer.getInventoryItem(itemname).count
else
return xPlayer.getAccount('black_money')
end
else
local player = lib.Functions.GetPlayer(source)
if isItem then
return exports['qb-inventory']:GetItemCount(source, itemname)
else
local money = Player.PlayerData.money
return money.blackmoney --- i dont think this will work in qb use item for dirty money
end
end
end
function GetFrameworkObject()
local object = nil
if Config.Framework == "oldesx" then
while object == nil do
TriggerEvent('esx:getSharedObject', function(obj) object = obj end)
Citizen.Wait(0)
end
end
if Config.Framework == "newesx" then
object = exports["es_extended"]:getSharedObject()
end
if Config.Framework == "newqb" then
object = exports["qb-core"]:GetCoreObject()
end
if Config.Framework == "oldqb" then
while object == nil do
TriggerEvent('QBCore:GetObject', function(obj) object = obj end)
Citizen.Wait(200)
end
end
return object
end