Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug to give item to other players #1866

Closed
contactozrcore opened this issue Jan 3, 2025 · 8 comments
Closed

Bug to give item to other players #1866

contactozrcore opened this issue Jan 3, 2025 · 8 comments
Labels
bug Something isn't working

Comments

@contactozrcore
Copy link

Describe the bug
It happens when you give the item to another player, if there are more than two players the list of players appears but the thing is that I choose the player but it is not given to him, it is only given to him if I am only with one person.

Framework
ESX

Resource version
[2.43.4]

imagen

@contactozrcore contactozrcore added the bug Something isn't working label Jan 3, 2025
@contactozrcore
Copy link
Author

Another thing is that I'm in a car and sometimes I try to open the car's inventory, that is, the drawer or the trunk, and it tells me that I can't...

@xrtw
Copy link
Contributor

xrtw commented Jan 4, 2025

fixed

@VilmisPukis
Copy link

Another thing is that I'm in a car and sometimes I try to open the car's inventory, that is, the drawer or the trunk, and it tells me that I can't...

We olso have that isue after last ox_inventory update,are you fix that issue ? Because 2 days ago we add new version of ox inventory and players cant open car's inventory...

@VilmisPukis
Copy link

fixed

The console error is fixed,but still players cant open car's inventory, need many times spaming to get opening the truk or glovebox. Any errors on console or F8.

@xrtw
Copy link
Contributor

xrtw commented Jan 7, 2025

fixed

The console error is fixed,but still players cant open car's inventory, need many times spaming to get opening the truk or glovebox. Any errors on console or F8.

Try this. 161 line:

if right and data.netid ~= right.netid then
local invEntity = NetworkGetEntityFromNetworkId(right.netid)

if DoesEntityExist(invEntity) then
local vehiclePlate = GetVehicleNumberPlateText(invEntity)

if plate and vehiclePlate and not string.match(vehiclePlate, plate) then
return
end
end

Inventory.Remove(right)
right = Inventory(data)
end

@VilmisPukis
Copy link

fixed

The console error is fixed,but still players cant open car's inventory, need many times spaming to get opening the truk or glovebox. Any errors on console or F8.

Try this. 161 line:

if right and data.netid ~= right.netid then local invEntity = NetworkGetEntityFromNetworkId(right.netid)

if DoesEntityExist(invEntity) then local vehiclePlate = GetVehicleNumberPlateText(invEntity)

if plate and vehiclePlate and not string.match(vehiclePlate, plate) then return end end

Inventory.Remove(right) right = Inventory(data) end

change that lines in code ?

            if right and data.netid ~= right.netid then
                local invEntity = NetworkGetEntityFromNetworkId(right.netid)

                if invEntity > 0 and DoesEntityExist(invEntity) or plate and not string.match(GetVehicleNumberPlateText(invEntity) or '', plate) then
                    return
                end

                Inventory.Remove(right)
                right = Inventory(data)
            end
		elseif invType == 'drop' then
			right = Inventory(data.id)
		else
			return
		end

@xrtw
Copy link
Contributor

xrtw commented Jan 8, 2025

fixed

The console error is fixed,but still players cant open car's inventory, need many times spaming to get opening the truk or glovebox. Any errors on console or F8.

Try this. 161 line:
if right and data.netid ~= right.netid then local invEntity = NetworkGetEntityFromNetworkId(right.netid)
if DoesEntityExist(invEntity) then local vehiclePlate = GetVehicleNumberPlateText(invEntity)
if plate and vehiclePlate and not string.match(vehiclePlate, plate) then return end end
Inventory.Remove(right) right = Inventory(data) end

change that lines in code ?

            if right and data.netid ~= right.netid then
                local invEntity = NetworkGetEntityFromNetworkId(right.netid)

                if invEntity > 0 and DoesEntityExist(invEntity) or plate and not string.match(GetVehicleNumberPlateText(invEntity) or '', plate) then
                    return
                end

                Inventory.Remove(right)
                right = Inventory(data)
            end
		elseif invType == 'drop' then
			right = Inventory(data.id)
		else
			return
		end

tikrai taip.

@VilmisPukis
Copy link

fixed

The console error is fixed,but still players cant open car's inventory, need many times spaming to get opening the truk or glovebox. Any errors on console or F8.

Try this. 161 line:
if right and data.netid ~= right.netid then local invEntity = NetworkGetEntityFromNetworkId(right.netid)
if DoesEntityExist(invEntity) then local vehiclePlate = GetVehicleNumberPlateText(invEntity)
if plate and vehiclePlate and not string.match(vehiclePlate, plate) then return end end
Inventory.Remove(right) right = Inventory(data) end

change that lines in code ?

            if right and data.netid ~= right.netid then
                local invEntity = NetworkGetEntityFromNetworkId(right.netid)

                if invEntity > 0 and DoesEntityExist(invEntity) or plate and not string.match(GetVehicleNumberPlateText(invEntity) or '', plate) then
                    return
                end

                Inventory.Remove(right)
                right = Inventory(data)
            end
		elseif invType == 'drop' then
			right = Inventory(data.id)
		else
			return
		end

tikrai taip.

O malonu lietuvi matyt, joa padejo tas fix,dekingi už greita suregavima

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants