From 1f61585917ae400151b84b79fcbbc4e1ff1c8663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= <52821987+YisusTM01@users.noreply.github.com> Date: Sat, 4 Apr 2020 19:03:34 +0200 Subject: [PATCH] Fixed collisions of pickups items and weapons Fixed character and car collisions with objects lying on the ground (also weapons and the bat itself). --- client/main.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/main.lua b/client/main.lua index 65527b1f..c41aa5b4 100644 --- a/client/main.lua +++ b/client/main.lua @@ -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,