TanguyOrtegat / esx_jb_stopvehicledespawn

8 stars 15 forks source link

doublespawning cars if arbitrator switches #7

Open Heady20006 opened 5 years ago

Heady20006 commented 5 years ago

The scripts works grad but if the arbitrator is switching to another all cars in the file are respawning.

Heady20006 commented 5 years ago

i found out that NetworkIsHost() is the problem isnt it? If the arbitrator is switchting, we got a new host, the scripts thinks that the cars not spawned and spawning them again.

XxFri3ndlyxX commented 5 years ago

Yes this happen with me and my friend too. I disconnected then he told me my car duplicated.

TanguyOrtegat commented 5 years ago

the script needs to operate once, thats why I use IsNetworkIsHost()

Heady20006 commented 5 years ago

But it didnt work. Is there any other natives we can use?

XxFri3ndlyxX commented 5 years ago

I have noticed that it does it when you tp far and then tp back to it too. Example. If it go to a door to tp to the weed warehouse location then when done i go back to the location where the car is. The car will duplicate but not all the time though.

TanguyOrtegat commented 5 years ago

yea i should sheck the code again, but atm i don't have a lot of time left for fivem :)

JaroSound commented 5 years ago

Someone fixed it?

TanguyOrtegat commented 5 years ago

don't think so :/ and i didn't have the time to look again at the script

Presty1 commented 5 years ago

If you can fix it that would be awesome I'm willing to use this script. Also I don't know if this is a issue or not. But I got 3 cars out that I own and left the server and came back and one of my vehicles was gone and the other was fixed. It didn't save my vehicles damage or it either fixed itself. Only 1 came back like it should have.

JaroSound commented 5 years ago

Is this problem fixed in Latest commit ?

TanguyOrtegat commented 5 years ago

i am hoping to find sollutions, but we are getting close