mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 05:56:01 +01:00
fix(ND_Fuel) fixed being able to grab a pump from inside a vehicle
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user