Closed matahombres closed 3 years ago
Thanks : )
Oh sorry, i made it so that different positions could be added for different vehicles. I did not notice that detail. As it is not complete and there are still some things to be modified I have not added it. But is my code:
function getAttachmentByVeh(currentVehicle)
local vc = GetVehicleClass(currentVehicle)
if(vc == 8 or vc == 13) then
return vec3(1.5, -0.5, 0.85)
end
if(vc == 10 or vc == 20) then
return vec3(2.5, 1.5, 2.5)
end
if(vc == 16) then
return vec3(2.5, 1.5, 1.5)
end
if(vc == 15) then
return vec3(2.5, 1, 1.5)
end
if(vc == 14) then
return vec3(2.5, 0, 2)
end
return vec3(2.5, -1, 0.85)
end
Adds support for motorcycles and bicycles, but I didn't like it on trucks for example. Since for example in the emergency category there are suvs and there are trucks.
@kasuganosoras
How to test this bug:
Because it happens:
currentVehicle
is another vehicle (nonexistent in this case because it is a store that you preview the car). And when checkingIsVehicleEngineOn(currentVehicle)
it will always give false.What causes:
PD: As I said in the title, it possibly fixes other bugs, but I haven't looked any more if there is one that is caused because of that