Posts: 74
Threads: 18
Joined: Mar 2015
Reputation:
0
sorry i dont have a code to post im pretty tired i tried just about every code i seen here and on ****** and nothing seems to work
i want all vehicles to spawn with more health
help please
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
Except from OnVehicleSpawn callback CalvinC posted (which is whenever a vehicle re-spawns), it'd be better to make your own functions when a vehicle is created or even hook those functions so it'll set the health itself.
Posts: 74
Threads: 18
Joined: Mar 2015
Reputation:
0
02.04.2015, 15:26
(
Последний раз редактировалось PSYCHOBABYKILLA; 02.04.2015 в 17:37.
)
LAST EDIT: i got it to work with
public OnVehicleStreamIn(vehicleid, forplayerid)
{
SetVehicleHealth(modelid, 5000);
return 1;
}
but i had to run it on a filterscript otherwise it wouldnt work it would compile i tried everything and i tried onvehiclestreamin already but it was my gamemode variables i guess
EDIT: lol just when i thought i got it all figured out walk in and out of a checkpoint and vehicle health is back up to 5000