Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

Guide Making Disc-Inventoryhud Money Items

Trottti

Member
Joined
Jan 15, 2022
Messages
8
Reaction score
1
Points
156
Location
Portugal
✌️Hello VAG Forum Family✌️

I wanted to share it with you because I think it is a topic that many people are looking for and will work



❓How do we turn money into an item❓
Find the following code from line 27 of es_extended\server\lasses\player.lua;
Code:
self.getMoney = function()
return self.player.get('money')
end

Replace this code with the code below;
Code:
self.getMoney = function()
local money = self.getInventoryItem('cash')
if self.player.get('money') ~= money.count then
self.player.set('money',money.count)
end
return money.count
end

Find the following code from line 65 of es_extended\server\lasses\player.lua;
Code:
self.addMoney = function(money)
money = ESX.Math.Round(money)
if money >= 0 then
self.player.addMoney(money)
else
print(('es_extended: %s attempted exploiting! (reason: player tried adding -1 cash balance)'):format(self.identifier))
end
end
self.removeMoney = function(money)
money = ESX.Math.Round(money)
if money >= 0 then
self.player.removeMoney(money)
else
print(('es_extended: %s attempted exploiting! (reason: player tried removing -1 cash balance)'):format(self.identifier))
end
end

Replace this code with the code below;
Code:
self.addMoney = function(money)
money = ESX.Math.Round(money)
if money >= 0 then
self.addInventoryItem("cash",money)
local money = self.getInventoryItem('cash')
if self.player.get('money') ~= money.count then
self.player.set('money',money.count)
end
else
print(('es_extended: %s attempted exploiting! (reason: player tried adding -1 cash balance)'):format(self.identifier))
end
end
self.removeMoney = function(money)
money = ESX.Math.Round(money)
if money >= 0 then
self.removeInventoryItem("cash",money)
local money = self.getInventoryItem('cash')
if self.player.get('money') ~= money.count then
self.player.set('money',money.count)
end
else
print(('es_extended: %s attempted exploiting! (reason: player tried removing -1 cash balance)'):format(self.identifier))
end
end

🔴 After completing these operations, you need to come to your own database in the HeidiSQL application and create an item named 'cash' in the item table.

📥 player.lua Download 📥 :
✅
Virus Total ✅ :


Do you know how to turn dirty money in to an item?
 

NexYT

Bronze Elite
Joined
Mar 9, 2022
Messages
21
Reaction score
4
Points
166
Location
Madrid
then, when i want to withdraw money, it doesnt work, do i have to add code in the bank system ?
 

elbo55

Silver Elite
Joined
Sep 15, 2022
Messages
43
Reaction score
22
Points
156
Location
FRANCE
✌️Hello VAG Forum Family✌️

I wanted to share it with you because I think it is a topic that many people are looking for and will work



❓How do we turn money into an item❓
Find the following code from line 27 of es_extended\server\lasses\player.lua;
Code:
self.getMoney = function()
return self.player.get('money')
end

Replace this code with the code below;
Code:
self.getMoney = function()
local money = self.getInventoryItem('cash')
if self.player.get('money') ~= money.count then
self.player.set('money',money.count)
end
return money.count
end

Find the following code from line 65 of es_extended\server\lasses\player.lua;
Code:
self.addMoney = function(money)
money = ESX.Math.Round(money)
if money >= 0 then
self.player.addMoney(money)
else
print(('es_extended: %s attempted exploiting! (reason: player tried adding -1 cash balance)'):format(self.identifier))
end
end
self.removeMoney = function(money)
money = ESX.Math.Round(money)
if money >= 0 then
self.player.removeMoney(money)
else
print(('es_extended: %s attempted exploiting! (reason: player tried removing -1 cash balance)'):format(self.identifier))
end
end

Replace this code with the code below;
Code:
self.addMoney = function(money)
money = ESX.Math.Round(money)
if money >= 0 then
self.addInventoryItem("cash",money)
local money = self.getInventoryItem('cash')
if self.player.get('money') ~= money.count then
self.player.set('money',money.count)
end
else
print(('es_extended: %s attempted exploiting! (reason: player tried adding -1 cash balance)'):format(self.identifier))
end
end
self.removeMoney = function(money)
money = ESX.Math.Round(money)
if money >= 0 then
self.removeInventoryItem("cash",money)
local money = self.getInventoryItem('cash')
if self.player.get('money') ~= money.count then
self.player.set('money',money.count)
end
else
print(('es_extended: %s attempted exploiting! (reason: player tried removing -1 cash balance)'):format(self.identifier))
end
end

🔴 After completing these operations, you need to come to your own database in the HeidiSQL application and create an item named 'cash' in the item table.

📥 player.lua Download 📥 :
✅
Virus Total ✅ :


sgsdg dgsd
 

vivibas

Silver Elite
Joined
Apr 24, 2022
Messages
16
Reaction score
62
Points
221
Location
uk
✌️Hello VAG Forum Family✌️

I wanted to share it with you because I think it is a topic that many people are looking for and will work



❓How do we turn money into an item❓
Find the following code from line 27 of es_extended\server\lasses\player.lua;
Code:
self.getMoney = function()
return self.player.get('money')
end

Replace this code with the code below;
Code:
self.getMoney = function()
local money = self.getInventoryItem('cash')
if self.player.get('money') ~= money.count then
self.player.set('money',money.count)
end
return money.count
end

Find the following code from line 65 of es_extended\server\lasses\player.lua;
Code:
self.addMoney = function(money)
money = ESX.Math.Round(money)
if money >= 0 then
self.player.addMoney(money)
else
print(('es_extended: %s attempted exploiting! (reason: player tried adding -1 cash balance)'):format(self.identifier))
end
end
self.removeMoney = function(money)
money = ESX.Math.Round(money)
if money >= 0 then
self.player.removeMoney(money)
else
print(('es_extended: %s attempted exploiting! (reason: player tried removing -1 cash balance)'):format(self.identifier))
end
end

Replace this code with the code below;
Code:
self.addMoney = function(money)
money = ESX.Math.Round(money)
if money >= 0 then
self.addInventoryItem("cash",money)
local money = self.getInventoryItem('cash')
if self.player.get('money') ~= money.count then
self.player.set('money',money.count)
end
else
print(('es_extended: %s attempted exploiting! (reason: player tried adding -1 cash balance)'):format(self.identifier))
end
end
self.removeMoney = function(money)
money = ESX.Math.Round(money)
if money >= 0 then
self.removeInventoryItem("cash",money)
local money = self.getInventoryItem('cash')
if self.player.get('money') ~= money.count then
self.player.set('money',money.count)
end
else
print(('es_extended: %s attempted exploiting! (reason: player tried removing -1 cash balance)'):format(self.identifier))
end
end

🔴 After completing these operations, you need to come to your own database in the HeidiSQL application and create an item named 'cash' in the item table.

📥 player.lua Download 📥 :
✅
Virus Total ✅ :


 

TheFury009008

Member
Joined
Feb 16, 2022
Messages
7
Reaction score
1
Points
156
Location
Ita
1701607032372.png

I tried, but I get this errors
how to fix?
 
Top