Re: How can I change the vehicle data script settings?
Posted: 04 Nov 2025, 21:15
You need to create the player and the car. You also you need a LEVELEND.
Are you trying to give vehicle machine gun to all APCs or just a specific one?
This script will check every vehicle the player enters and if it's an APC then it will make it rocketproof and give it vehicle gun.
Are you trying to give vehicle machine gun to all APCs or just a specific one?
This script will check every vehicle the player enters and if it's an APC then it will make it rocketproof and give it vehicle gun.
Code: Select all
// ste.gmp ste.sty apc.scr
PLAYER_PED p1 = (35.0, 212.0, 255.0) 25 0
PARKED_CAR_DATA specific_apc = (36.0, 212.0, 255.0) 0 0 APC
CAR_DATA any_apc
COUNTER loop = 1
LEVELSTART
WHILE ( loop = 1 )
STORE_CAR_CHARACTER_IS_IN (p1,any_apc)
IF (CHECK_CAR_MODEL (any_apc,APC))
SET_CAR_FLAMEPROOF (any_apc, ON)
SET_CAR_BULLETPROOF (any_apc, ON)
SET_CAR_ROCKETPROOF (any_apc, ON)
GIVE_WEAPON (any_apc, car_machine_gun)
ENDIF
ENDWHILE
LEVELEND