mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 17:28:53 +00:00
Fixed collisions of pickups items and weapons
Fixed character and car collisions with objects lying on the ground (also weapons and the bat itself).
This commit is contained in:
@@ -297,6 +297,7 @@ AddEventHandler('esx:createPickup', function(pickupId, label, playerId, type, na
|
||||
SetEntityAsMissionEntity(pickupObject, true, false)
|
||||
PlaceObjectOnGroundProperly(pickupObject)
|
||||
FreezeEntityPosition(pickupObject, true)
|
||||
SetEntityCollision(pickupObject, false, true)
|
||||
|
||||
pickups[pickupId] = {
|
||||
id = pickupId,
|
||||
@@ -334,6 +335,7 @@ AddEventHandler('esx:createMissingPickups', function(missingPickups)
|
||||
SetEntityAsMissionEntity(pickupObject, true, false)
|
||||
PlaceObjectOnGroundProperly(pickupObject)
|
||||
FreezeEntityPosition(pickupObject, true)
|
||||
SetEntityCollision(pickupObject, false, true)
|
||||
|
||||
pickups[pickupId] = {
|
||||
id = pickupId,
|
||||
|
||||
Reference in New Issue
Block a user