File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 89
89
90
90
local function onHitHouseMarker (thePickup , matchingDimension )
91
91
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
93
93
return false
94
94
end
95
95
if (thePickup .model ~= 1272 and thePickup .model ~= 1273 or not thePickup :getData (" houseID" )) then
106
106
addEventHandler (" onClientPlayerPickupHit" , root , onHitHouseMarker )
107
107
108
108
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
110
110
return false
111
111
end
112
112
if (thePickup .model ~= 1272 and thePickup .model ~= 1273 or not thePickup :getData (" houseID" )) then
You can’t perform that action at this time.
0 commit comments