mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-18 06:16:02 +01:00
REFACTORRRRRR
fuck you
This commit is contained in:
@@ -36,7 +36,7 @@ end
|
||||
|
||||
-- Hide/Show ui
|
||||
function SetDisplay(bool)
|
||||
local selectedCharacter = NDCore.functions:getSelectedCharacter()
|
||||
local selectedCharacter = NDCore.Functions.GetSelectedCharacter()
|
||||
display = bool
|
||||
SetNuiFocus(bool, bool)
|
||||
SendNUIMessage({
|
||||
@@ -134,7 +134,7 @@ end)
|
||||
RegisterNetEvent("ND_ATMs:update")
|
||||
AddEventHandler("ND_ATMs: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,16 +1,16 @@
|
||||
NDCore = exports["ND_Core"]:GetCoreObject()
|
||||
NDCore.functions:versionChecker("ND_ATMs", GetCurrentResourceName(), "https://github.com/Andyyy7666/ND_Framework", "https://raw.githubusercontent.com/Andyyy7666/ND_Framework/main/ND_ATMs/fxmanifest.lua")
|
||||
NDCore.Functions.VersionChecker("ND_ATMs", GetCurrentResourceName(), "https://github.com/Andyyy7666/ND_Framework", "https://raw.githubusercontent.com/Andyyy7666/ND_Framework/main/ND_ATMs/fxmanifest.lua")
|
||||
|
||||
RegisterNetEvent("ND_ATMs:withdraw")
|
||||
AddEventHandler("ND_ATMs:withdraw", function(amount)
|
||||
local player = source
|
||||
local update = NDCore.functions:withdrawMoney(amount, player)
|
||||
local update = NDCore.Functions.WithdrawMoney(amount, player)
|
||||
TriggerClientEvent("ND_ATMs:update", player, update)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("ND_ATMs:deposit")
|
||||
AddEventHandler("ND_ATMs:deposit", function(amount)
|
||||
local player = source
|
||||
local update = NDCore.functions:depositMoney(amount, player)
|
||||
local update = NDCore.Functions.DepositMoney(amount, player)
|
||||
TriggerClientEvent("ND_ATMs:update", player, update)
|
||||
end)
|
||||
Reference in New Issue
Block a user