Open lush0n3 opened 5 months ago
ill check it out
and this is the latest inventory addons?
@lush0n3
i was still having the weapons on back with latest ox_lib. did you by chance upgrade your server artifacts as well? there were some things that broke with statebags on a recent artifact build
That must be it, I'm using version 8509. What version do you use?
i am on 7827 right now. you can try the latest one 8552 to see if its resolved
We had to update to latest artifact, and enable Onesync Infinity in tx instead of in the server.cfg file. Then everything works fine.
Did another test. 8509 = no waepon on back 8552 = weapon on back
Thanks for your time!
I have a new problem
If I enter the server for the first time I get this error, if I then restart the resource it works, apparently it is a multicharacter esx problem.
After restarting the script
SCRIPT ERROR: @sleepless_inventory_addons/backItems/client/main.lua:28: attempt to get length of a nil value (field '?')^7
createBackItemsForPlayer^7 (^5@sleepless_inventory_addons/backItems/client/main.lua^7:28)
ref^7 (^5@sleepless_inventory_addons/backItems/client/main.lua^7:97)
sleepless_inventory_addons v2.2.4 ox_lib v3.22.2 server artifacts 8552 gamebuild 3095
Weapons on back not working
Error in client:
Start working after a ensure, what?
Seems like same issue as the person above? Are you esx as well?
Seems like same issue as the person above? Are you esx as well?
Yes, im using ESX and vms_multichars, vms_identity, vms_spawnselector and vms_charcreator. what about the guy up?
I think i see the issue. Not directly related to esx, but i will get a fix out for it today or tomorrow
I think i see the issue. Not directly related to esx, but i will get a fix out for it today or tomorrow
By they way i have a config custom for backItems that i would like people to collab. Where can i upload it?
ADD: You can´t see others weapons on backs.
definitely were able to before, maybe my latest update has a bug. chekcing this out now
this should now be resolved in v2.2.5
Still not seeing weapons on others.
My bad? or
My bad? or
Not entirely sure. I tested with 2 clients today and everything synced up perfectly. I know there are some recent issues with statebags on certain artifact versions. Not sure which versions, but maybe thats related.
edit: i tested with 2 clients on an ESX server
I can´t test so much cause i dont have people to test it yesterday was lucky.
After latest version '2.2.5', it works properly for me, I am using build 8552
I tested it on localhost and public server with more players.
I will be testing it and telling u.
New issue, some players are shown a weapon they do not have in their inventory
New issue, some players are shown a weapon they do not have in their inventory
This is happening me using multichars with char1: char2: char3: if they join with char1 and change to char2 the weapons from char 1 are in the back.
Ooooooh. So do you both have character swapping without relogging?
i swapped to storing the items using serverId vs using playerId so if they swap chars, it may be retaining data from the previous characters
Ooooooh. So do you both have character swapping without relogging?
i swapped to storing the items using serverId vs using playerId so if they swap chars, it may be retaining data from the previous characters
F
Ooooooh. So do you both have character swapping without relogging?
i swapped to storing the items using serverId vs using playerId so if they swap chars, it may be retaining data from the previous characters
I don't use that, what happens is that some players are shown a weapon they don't have in their inventory on their back.
Using multi-character Forcelog causes a lot of errors and I have it completely disabled on my server.
Very interesting. Well i will add something for catching char swapping anyways. And i will also look for how it could possibly be assigning the wrong data to a player for weapons shown
my guess is that weapons from other players are getting attached to the player
found the issue i think. here i thought serverids would be less of a headache than player ids
OK. new version just pushed. should be fixed. let me know
esx_multicharacter use esx:playerLoaded and esx:onPlayerLogout with which you can observe when a player uses forcelog or relog
I'm going to update the repository and in an hour I'm going to restart the server, I'll tell you if the solution worked.
For me now is working.
i tested it in my esx server using /forcelog and it seemed to work fine. no items on the new character
Ooooooh. So do you both have character swapping without relogging? i swapped to storing the items using serverId vs using playerId so if they swap chars, it may be retaining data from the previous characters
I don't use that, what happens is that some players are shown a weapon they don't have in their inventory on their back.
Using multi-character Forcelog causes a lot of errors and I have it completely disabled on my server.
i also fixed an issue that would cause items to be attached to you from other players, which i think is the issue you are experiencing
It works correctly so far, I will let you know if there is anything.
Apparently with the latest version of ox_lib the models are not loaded, I don't have any type of error anywhere, just the obvious fact that the weapons do not appear.
ox_lib version '3.22.2'
This started happening when I updated the Ox libraries.
https://streamable.com/hq5dwq