mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-01 02:38:53 +00:00
Merge pull request #624 from YisusTM01/master
Fixed collisions of pickups items and weapons
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