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

4
.gitignore vendored
View File

@@ -1,3 +1,5 @@
ND_Blackjack/
ND_Blips/
ND_Blips/
ND_Inventory/
ND_Laser/

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

View File

@@ -221,6 +221,7 @@ CreateThread(function()
pedCoords = GetEntityCoords(ped)
pump, pumpHandle = nearPump(pedCoords)
veh = GetVehiclePedIsIn(ped, true)
inveh = GetVehiclePedIsIn(ped, false)
Wait(500)
end
end)
@@ -319,7 +320,7 @@ CreateThread(function()
local wait = 500
while true do
Wait(wait)
if pump then
if pump and inveh == 0 then
wait = 0
if not holdingNozzle and not nozzleInVehicle and not nozzleDropped then
local jerryCanText = ""

View File

@@ -4,7 +4,7 @@
<p align='center'><b><a href="https://ndframework.gitbook.io/nd-framework/">Documentation</a></b>
# Description:
This is a dojrp inspired framework, with a money system and extra features.
This is a framework, with a money system and extra features.
# Addons:
You can find most free addons in the ND_Framework repository and you can find more paid ones on [tebex](https://andyyy.tebex.io/category/fivem-scripts?currency=USD).