You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,I don't know if I'm explaining it well, but let me try.
I don't really understand why metadata has been added, but it causes major lag spikes when saving player data to database,
also it never remove keys in qb scripts with exports['qb-vehiclekeys']:RemoveKeys(id, plate) so all keys stays in player metadata.
For example, if you do a lot of jobs that uses vehicles, they are also in the player metadata and never removed when the vehicle despawns, so if you have used 1000 vehicles you have 1000 keys in the player metadata, and that doesn't seem logical to me.
I removed the code and my server no longer has lag spikes when saving player data, because I had more than 1000 keys in database player metadata,
also you get a huge yellow message in the server console and you see a lot of vehicle keys that is going to save, but many keys you don't have the vehicle anymore because this was a random job vehicle.
It gets really bad if, for example, you have to test with vehicles and have to spawn a lot with command /car [model], then it will escalate in no time and cause major lag spikes, and it's strange that this is used because a player already have to spawn a vehicle after server restart anyway and give a key to the player, so what's the point of the metadata than, especially if you have keys from vehicles that you don't even have or just used one time but you keep the keys, and that makes no sense at all.
I hope I explain it well, I used google translate so it may look a bit strange, sorry about that.
Grt MaDHouSe.
The text was updated successfully, but these errors were encountered:
Hi,I don't know if I'm explaining it well, but let me try.
I don't really understand why metadata has been added, but it causes major lag spikes when saving player data to database,
also it never remove keys in qb scripts with exports['qb-vehiclekeys']:RemoveKeys(id, plate) so all keys stays in player metadata.
For example, if you do a lot of jobs that uses vehicles, they are also in the player metadata and never removed when the vehicle despawns, so if you have used 1000 vehicles you have 1000 keys in the player metadata, and that doesn't seem logical to me.
I removed the code and my server no longer has lag spikes when saving player data, because I had more than 1000 keys in database player metadata,
also you get a huge yellow message in the server console and you see a lot of vehicle keys that is going to save, but many keys you don't have the vehicle anymore because this was a random job vehicle.
It gets really bad if, for example, you have to test with vehicles and have to spawn a lot with command /car [model], then it will escalate in no time and cause major lag spikes, and it's strange that this is used because a player already have to spawn a vehicle after server restart anyway and give a key to the player, so what's the point of the metadata than, especially if you have keys from vehicles that you don't even have or just used one time but you keep the keys, and that makes no sense at all.
I hope I explain it well, I used google translate so it may look a bit strange, sorry about that.
Grt MaDHouSe.
The text was updated successfully, but these errors were encountered: