01.02.2014, 07:43
Hey guys, I'm using NGRP/Horizon RP Gamemode, I want to make PD vehicles (596, 597, 598 ) armored, but I cant. I dont know how to use 'SetVehicleHealth'.
// On gamemode init
for(new i = 0; i < MAX_VEHICLES; i++)
{
if(GetVehicleModel(i) == 596 || GetVehicleModel(i) == 597 || GetVehicleModel(i) == 598)
{
SetVehicleHealth(i, 9999999);
print("Armored Cars Loaded.");
}
}
Are you sure you put it under the OnGameModeInit callback? Because this worked good for me.
|
public OnGameModeInit()
{
for(new i = 0; i < MAX_VEHICLES; i++)
{
if(GetVehicleModel(i) == 596 || GetVehicleModel(i) == 597 || GetVehicleModel(i) == 598)
{
SetVehicleHealth(i, 3000);
print("Armored Cars Loaded.");
}
}
new
I put it like that, I think I cant put it truely.
pawn Код:
|