Vehicles won't take any damage. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Vehicles won't take any damage. (
/showthread.php?tid=637643)
Vehicles won't take any damage. -
Omirrow - 18.07.2017
Hey,
Whenever I try to shoot a vehicle, it doesn't take any damage, the tires won't even pop what could be the problem?
(NOTE THAT: There's a player in the vehicle and the engine is turned on & it's not locked whilst I shoot it)
Re: Vehicles won't take any damage. -
FailerZ - 18.07.2017
https://sampwiki.blast.hk/wiki/EnableVehicleFriendlyFire
Is most likely your problem.
If it doesn't work show OnPlayerWeaponShot
Re: Vehicles won't take any damage. -
Omirrow - 18.07.2017
Just changed OnPlayerWeaponShot's return value to 1 and it works now, thanks anyways.