From 7f27f60580154d950dc771fa414057d3c306bdca Mon Sep 17 00:00:00 2001 From: Jare88 <73169864+Jare88@users.noreply.github.com> Date: Tue, 15 Mar 2022 17:15:30 +0200 Subject: [PATCH] Update server.lua --- src/server.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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