-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NetworkHasControlOfEntity Issues #4
Comments
After som debugging, i found out that this happens when the raycast returns 0 which means it hasn't found a vehicle on the bed... For some reason the if statement 'if newCar then' does nok work correctly. This prevents the script from ever going into the infinite loop you are mentioning. There are some addon cars that the raycast just wont find. Therefore i also added so that if the raycast returns 0 it instead uses the last car that i entered, which should be the car i drove onto the bed. This has been working flawlessly ever since. |
@Mikkelhost hello I had found the same problem your changes interests me a lot just like the LSPD model problem or the fact that a non-mechanic can control the maneuver if you could share me your work thank you very much, the author does not seem to update the script anymore or correct all this |
Thats my fix of breaking the function othzerwise |
The pull request that was merged #1 has an issue here where it may never return.
In my testing this can cause beds to not delete if the script gets locked in this loop and the vehicle is then deleted. There should be a timeout or something similar put into it to prevent this.
fivem-functional-flatbed/flatbed.lua
Line 245 in f49a516
The text was updated successfully, but these errors were encountered: