Posts: 91
Threads: 9
Joined: Mar 2012
Reputation:
0
I wanted to make a vehicle's tires pop if they have been shot. I'm using OnPlayerWeaponShot and the information of GetVehiclePos and GetVehicleModelInfo but I'm quite frustrated about the maths. Can anyone here help me?
Posts: 376
Threads: 28
Joined: Jun 2012
Reputation:
0
But don't they already do that in the default GTA/SA:MP?
Posts: 91
Threads: 9
Joined: Mar 2012
Reputation:
0
If someone is in the vehicle, yes. But not if there's no driver and no passengers
Posts: 176
Threads: 29
Joined: Aug 2012
Reputation:
0
Not at home at the min but basically you have to have bullet hit vehicle under player shot weapon then the function isvehicleoccupied(vehicleid) = 0 then create a stock with getvehiiclemodelinfo using rear and drone -0.5 +0.5 on both then stock setvehicletire pop with new panels doors tires then set which tire to Pop I written the code but added check points to which tire is popped so you get tire out the boot d fix tire lol I'm at work at the min See of that puts you on right direction