diff --git a/src/server.lua b/src/server.lua index 9e99f36..3d23880 100644 --- a/src/server.lua +++ b/src/server.lua @@ -48,7 +48,7 @@ end RegisterServerEvent('o-drug:collecting', function(coords, data) local xPlayer = ESX.GetPlayerFromId(source) - local hex = xPlayer.getIdentifer + local hex = ESX.GetPlayerFromId(source).getIdentifier() local dist = #(coords - data.pos) if xPlayer then if dist < 5 then @@ -77,4 +77,4 @@ function webhook(message) } } PerformHttpRequest(Config.Webhook, function(err, text, headers) end, 'POST', json.encode({username = name, embeds = content}), { ['Content-Type'] = 'application/json' }) -end \ No newline at end of file +end