hi
i want to disable collision for vehicle1 and vehicle2 to all vehicles in city but its only effecting vehicle2
my example code :
vehicle1 = CreateVehicle(GetHashKey('neon'), spawncoords, heading, true, false)
vehicle2 = CreateVehicle(GetHashKey('neon'), spawncoords, heading, true, false)
while true do
Wait(0)
vehs = GetGamePool('CVehicle')
for _, veh in ipairs(vehs) do
SetEntityNoCollisionEntity(veh, vehicle1, true)
SetEntityNoCollisionEntity(veh, vehicle2, true)
end
end
i tested many times, its only effecting vehicle2 unless i remove the SetEntityNoCollisionEntity for vehicle2 but i want to do it for both
any suggestion ?