fix(ND_Fuel) fixed being able to grab a pump from inside a vehicle

This commit is contained in:
Niko
2022-07-29 01:37:51 -04:00
parent a26703e42a
commit 95d0ff204c
5 changed files with 8 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ end)
-- Getting all the characters the player has and returning them to the client.
RegisterNetEvent("ND:GetCharacters", function()
local player = source
print(NDCore.Functions.GetPlayerCharacters(player)[1])
Wait(100)
TriggerClientEvent("ND:returnCharacters", player, NDCore.Functions.GetPlayerCharacters(player))
end)

View File

@@ -10,7 +10,7 @@ end
function NDCore.Functions.GetUserDiscordInfo(discordUserId)
local data
PerformHttpRequest("https://discordapp.com/api/guilds/" .. server_config.guildId .. "/members/" .. discordUserId, function(errorCode, resultData, resultHeaders)
if errorCode ~= 200 then
if errorCode ~= 200 then
print("Error: " .. errorCode .. ", discord token might be missing.")
return
end