Skip to content

Commit 11bff4f

Browse files
author
Aland Mariwan
authored
Update main.lua
1 parent 98e579d commit 11bff4f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/main.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ TriggerEvent("esx:getSharedObject", function(obj)
44
ESX = obj
55
end)
66

7-
RegisterNetEvent('am-shops:Cashier')
8-
AddEventHandler('am-shops:Cashier', function(price, basket, account)
7+
RegisterNetEvent('am_shops:Cashier')
8+
AddEventHandler('am_shops:Cashier', function(price, basket, account)
99
local src = source
1010
local xPlayer = ESX.GetPlayerFromId(src)
1111

@@ -23,7 +23,7 @@ AddEventHandler('am-shops:Cashier', function(price, basket, account)
2323

2424
end)
2525

26-
ESX.RegisterServerCallback('am-shops:CheckMoney', function(source, cb, price, account)
26+
ESX.RegisterServerCallback('am_shops:CheckMoney', function(source, cb, price, account)
2727
local src = source
2828
local xPlayer = ESX.GetPlayerFromId(src)
2929
local money
@@ -47,4 +47,4 @@ pNotify = function(message, messageType, messageTimeout)
4747
timeout = messageTimeout,
4848
layout = "topRight"
4949
})
50-
end
50+
end

0 commit comments

Comments
 (0)