-
Notifications
You must be signed in to change notification settings - Fork 37
Collision when entering vehicle #27
Comments
It's technically disabled it, but I guess it's not disabled for other players https://github.com/swkeep/keep-bags/blob/main/client/clothing.lua#L70 |
Ya, I saw that too, but it seems the collisions get enabled again sometimes. Any chance of an export to remove and add bags back that we can utilize? That way when anyone gets in a vehicle, they bags get removed and then are added again when they exit a vehicle. |
I created an active thread (aedf43b) to check for vehicles, but I think I need to do more to ensure they don't spawn within that 250ms window :) |
I will add that and test. Thank you for the update. |
So I use this event for removing weapons on players back and re-adding them, it seems to work just fine. I'm thinking this may be better to use than the while true loop, any thoughts? Obviously this is for a qb server. EDIT RegisterNetEvent('QBCore:Client:VehicleInfo', function(data)
if data.event == "Entered" then
BodyAttachment:clearAll()
elseif data.event == "Left" then
Load()
end
end)```
|
This seems to work really well so far and haven't had issues as of yet. |
Thank you for the information |
I believe there is a baseevents for entering a vehicle as well, I'll check when I get home.
…On Thu, Jul 4, 2024, 3:48 AM swkeep ***@***.***> wrote:
Thank you for the information
However, my script needs to work in ESX as well, so I can't directly use it
I will probably make a bridge within my Harmony to allow it to use both
events
https://github.com/esx-framework/esx_core/blob/c80916c3e3b14e3cfce6102801b382e59c49bd27/%5Bcore%5D/es_extended/client/modules/actions.lua#L70
—
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A5V6JSKVVLUXMYJ37LJQCW3ZKT45NAVCNFSM6AAAAABJSR2YUWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBYGMZTCMRTGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Just like most weapons on back resources, back packs can sometimes cause collision issues when entering vehicles, causing it to tornado like crazy. The fix for this is simple. Add an export to remove/add bags that we can add to the event handler for entering a vehicle.
The text was updated successfully, but these errors were encountered: