qbcore-framework / qb-smallresources

A compilation of small resources combined into one
GNU General Public License v3.0
51 stars 346 forks source link

[BUG] Server owners Seatbelt doesnt work when pressing 'b' #413

Closed daf4ever closed 7 months ago

daf4ever commented 9 months ago

Describe the bug Server owners Seatbelt doesnt work. See BUG #298

To Reproduce If you are server owner the seatbelt doesn't work. You can hear the clicking sound but the light doesnt go away and when you drive into something you instantly fly out of the window. It doesnt happen to anyone else but the server owner.

Expected behavior That the seatbelt works for Server Owners

Questions (please complete the following information): When you last updated:

Are you using custom resource? which ones?

Additional context If I type: /toggleseatbelt it works but when pressing 'b' it doesnt. For example it is annoying to write hundred and twenty times "/toggleseatbelt" in 1 hour when you do a delivery job.

KingRyuShin commented 9 months ago

You need the set the ejection event in a thread for the script to work

![Uploading Screenshot_20231009_160709_Samsung Internet.jpg…]()

daf4ever commented 9 months ago

Hi KingRyuShin. Can you elaborate? What do you mean with "ejection event in a thread". I downloaded the setup for a QBCore Server and smallresources automatically starts. In config.lua for smallresources I don't find anything with "ejection". Other players and myself get ejected. Other players can toggle their seatbelt and it works. Myself, I hear the 'clicking' sound that the seatbelt is toggled, but the icon doesnt go away nor am I wearing one.

Maxhero54 commented 9 months ago

my server also ---- after crash Eject From Vehicle dont working #415

github-actions[bot] commented 7 months ago

This issue has had 60 days of inactivity & will close within 7 days