local lamppostList = {
[1126] = true --enter lamp post ids
}
setTimer(
function()
local pVeh = getPedOccupiedVehicle(localPlayer) -- Get the players vehicle
for i,v in pairs(getElementsByType("object", root, true)) do
if (isElement(v)) and (getElementType(v) == "object") and (lamppostList[getElementModel(v)]) then
if(pVeh) then
setElementCollidableWith(pVeh,v, false)
setElementCollidableWith(v,pVeh, false)
end
end
end
end,
500, 0)
can you try this