[Release] esx-kr-bag-inventory - A bag inventory script synced with the server


#84

Can you give me some examples? Did you restart the script midgame?


#85

ye. once again can put weight limit on the bag? because I’m getting more than 1000kg easy


#86

I think a similar system as the inventory could work**

image

Continuing the discussion from [Release] esx-kr-bag-inventory - A bag inventory script synced with the server:
that what was i mean, he only need to add something like limitcount per each item.

Example, max item in bag 5 and then can set the quantity of that items.


#87

Hey!
I am testing your script atm.
As soon as a different player than yourself takes YOUR bag, a ghostly bag stays on the floor. I made a vid to show you :slight_smile:


#88

Yes it’s that or it will not disapear at all


#89

Or areyou refeering to it not disappearingat all?


#90

Oh, it will disappaear if i am far enough from it.
But for the time me being near the bag it will sit on the ground and stay there.


#91

I do not use multi selection characther system :roll_eyes:


#92

Try latest version.


#93

can i make the F5 menu open with the nb_menuperso


#94

Change the buttom on the end of the script


#95

actually i’ve tried but didn’t work


#96

row 361
if IsControlJustReleased(0, Keys[‘F5’]) and HasBag and not IsPedInAnyVehicle(GetPlayerPed(-1), true) and not IsEntityInAir(PlayerPedId()) then

Change F5 to whatever you want.


#97

yes i know but with what i should replace it
to make it work
i’ve tried using this

RegisterNetEvent(‘NB:openMenuInventaire’)
AddEventHandler(‘NB:openMenuInventaire’, function()
bag()
end)


#98

so when a player drop a bag then go try to buy another it will bug out the player http://prntscr.com/mspw00


#99

Weird cause it shouldn’t at all, let me investigate this.


#100

Could you be a bit more specific


#101

@KRILLE To solve this have you tried to remove it server side???
That way once its picked up its triggered serverside so that everyone sees it removed instead of just client side.


#102

ok so when i drop the bag then i could not pick the bag back up so i went and got another then it was working again but when i relog to keep testing my player dose not load in anymore so i went and deleted the 2nd bag and it started working again


#103

How do you mean? Trigger a event to all players to remove the bag? It whould be weird since non of the players either the one dropping or picking it up can see it gone. Only if you use NetoworkFadeOutEntity. Personly i think it SHOULD be deleted but for some reason it won’t. I think it has to do something on whos the owner of the entity.