Skip to content

Commit 6d6a46f

Browse files
Bug fixes from 1.5.3
MTA 1.5.3 has broken two features already in UCD. How many more can we find?
1 parent 23a0c54 commit 6d6a46f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UCDhousing/client.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ end
8989

9090
local function onHitHouseMarker(thePickup, matchingDimension)
9191
if (thePickup and isElement(thePickup)) then
92-
if (source ~= localPlayer or not matchingDimension or localPlayer:isInVehicle() or thePickup.type ~= 3) then
92+
if (source ~= localPlayer or not matchingDimension or localPlayer.vehicle or getPickupType(thePickup) ~= 3) then
9393
return false
9494
end
9595
if (thePickup.model ~= 1272 and thePickup.model ~= 1273 or not thePickup:getData("houseID")) then
@@ -106,7 +106,7 @@ end
106106
addEventHandler("onClientPlayerPickupHit", root, onHitHouseMarker)
107107

108108
local function onLeaveHouseMarker(thePickup, matchingDimension)
109-
if (source ~= localPlayer or not matchingDimension or localPlayer:isInVehicle() or thePickup.type ~= 3) then
109+
if (source ~= localPlayer or not matchingDimension or localPlayer.vehicle or getPickupType(thePickup) ~= 3) then
110110
return false
111111
end
112112
if (thePickup.model ~= 1272 and thePickup.model ~= 1273 or not thePickup:getData("houseID")) then

0 commit comments

Comments
 (0)