mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-18 14:26:03 +01:00
REFACTORRRRRR
fuck you
This commit is contained in:
@@ -39,7 +39,7 @@ end
|
||||
|
||||
-- Hide/Show ui
|
||||
function SetDisplay(bool)
|
||||
local selectedCharacter = NDCore.functions:getSelectedCharacter()
|
||||
local selectedCharacter = NDCore.Functions.GetSelectedCharacter()
|
||||
display = bool
|
||||
SetNuiFocus(bool, bool)
|
||||
SendNUIMessage({
|
||||
@@ -146,7 +146,7 @@ end)
|
||||
RegisterNetEvent("ND_Banks:update")
|
||||
AddEventHandler("ND_Banks:update", function(status)
|
||||
Citizen.Wait(1000)
|
||||
local selectedCharacter = NDCore.functions:getSelectedCharacter()
|
||||
local selectedCharacter = NDCore.Functions.GetSelectedCharacter()
|
||||
SendNUIMessage({
|
||||
balance = "Account Balance: $" .. selectedCharacter.bank .. ".00",
|
||||
success = status
|
||||
|
||||
@@ -1,23 +1,23 @@
|
||||
NDCore = exports["ND_Core"]:GetCoreObject()
|
||||
NDCore.functions:versionChecker("ND_Banks", GetCurrentResourceName(), "https://github.com/Andyyy7666/ND_Framework", "https://raw.githubusercontent.com/Andyyy7666/ND_Framework/main/ND_Banks/fxmanifest.lua")
|
||||
NDCore.Functions.VersionChecker("ND_Banks", GetCurrentResourceName(), "https://github.com/Andyyy7666/ND_Framework", "https://raw.githubusercontent.com/Andyyy7666/ND_Framework/main/ND_Banks/fxmanifest.lua")
|
||||
|
||||
RegisterNetEvent("ND_Banks:withdraw")
|
||||
AddEventHandler("ND_Banks:withdraw", function(amount)
|
||||
local player = source
|
||||
local update = NDCore.functions:withdrawMoney(amount, player)
|
||||
local update = NDCore.Functions.WithdrawMoney(amount, player)
|
||||
TriggerClientEvent("ND_Banks:update", player, update)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("ND_Banks:deposit")
|
||||
AddEventHandler("ND_Banks:deposit", function(amount)
|
||||
local player = source
|
||||
local update = NDCore.functions:depositMoney(amount, player)
|
||||
local update = NDCore.Functions.DepositMoney(amount, player)
|
||||
TriggerClientEvent("ND_Banks:update", player, update)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("ND_Banks:transfer")
|
||||
AddEventHandler("ND_Banks:transfer", function(amount, target)
|
||||
local player = source
|
||||
local update = NDCore.functions:transferBank(amount, player, target)
|
||||
local update = NDCore.Functions.TransferBank(amount, player, target)
|
||||
TriggerClientEvent("ND_Banks:update", player, update)
|
||||
end)
|
||||
Reference in New Issue
Block a user