OppoNoppo / op-vehlock

Vehicle Lock with Database for the FiveM Platform
GNU General Public License v3.0
7 stars 4 forks source link

Vehiclelocks desyncin #4

Open YasinY opened 1 year ago

YasinY commented 1 year ago

Hi,

I am facing several issues:

How can we approach this so we can get to a solution together?

Kind regards

OppoNoppo commented 1 year ago

Hey there,

Trunks sometimes open periodically

Can you elaborate on this issue?

Cars are shaking sometimes when locked

Yes, I just now see that it does that periodically, I am guessing that it happens whenever the server syncs all locks with the clients. This changes the vehicle state, and I am not sure how FiveM / GtaV handles vehicle changes.

As of now, I haven't noticed a big impact that it brings with it. It doesn't really affect the handling, and realistically thinking the vehicle will only be changed a max of 2 times when driving.

Cars are sometimes locked when they are spawned by an external vehicle persistence script

The script only locks vehicles which plate matches any of the plates in the database, it should not have any effect on any other cars.

I would like to help with these issues the best I can. But I have no real way to reproduce the trunk issue without knowing what you exactly mean, and if it is related to an inventory I would like to know which inventory.

YasinY commented 1 year ago

I fixed the latter issue - guess it just clashed with my entity persistence script.

The first issue, with the trunks come with the sync you mentioned -

on some cars, when they shake, they also open the trunk for just a small angle and close again.

OppoNoppo commented 1 year ago

just for my understanding, does the trunk opening affect the use of certain scripts or is it pure cosmetic

YasinY commented 1 year ago

cosmetic

OppoNoppo commented 1 year ago

So, in my testing my trunk doesn't happen to open randomly, and since its cosmetic I won't priorotize this for a update. However if you really want to remove that, you could try to close all doors in the changelock function. (Can be done here)

YasinY commented 1 year ago

bro it's not really 'opening' its more like, its opening slightly (as in tilts a little bit) then instantly closes. it's so fkin weird