mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 05:56:01 +01:00
Update main.lua
This commit is contained in:
@@ -157,8 +157,8 @@ AddEventHandler("addCash", function(amount, characterid)
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
-- This is used to find out how much money the player has and use it in the client to show it on the ui.
|
-- This is used to find out how much money the player has and use it in the client to show it on the ui.
|
||||||
RegisterNetEvent("updateMoney")
|
RegisterNetEvent("getMoney")
|
||||||
AddEventHandler("updateMoney", function(characterid)
|
AddEventHandler("getMoney", function(characterid)
|
||||||
local player = source
|
local player = source
|
||||||
exports.oxmysql:query("SELECT cash, bank FROM characters WHERE license = ? AND character_id = ?", {GetPlayerIdentifierFromType("license", player), characterid}, function(result)
|
exports.oxmysql:query("SELECT cash, bank FROM characters WHERE license = ? AND character_id = ?", {GetPlayerIdentifierFromType("license", player), characterid}, function(result)
|
||||||
if result then
|
if result then
|
||||||
|
|||||||
Reference in New Issue
Block a user