Page 2 of 2
Re: How can I change the vehicle data script settings?
Posted: 04 Nov 2025, 21:15
by Sektor
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.
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
Re: How can I change the vehicle data script settings?
Posted: 05 Nov 2025, 12:48
by dltmdwns156
I compiled it with the above in the "bil.mis" file and it was successful because the "bil.SCR" file was created. So I overwritten the "bil.SCR" file into the GTA2 data folder, but it didn't work on the game... Is there anything I missed?
Re: How can I change the vehicle data script settings?
Posted: 05 Nov 2025, 13:02
by Sektor
are you running bil.scr? It's the 3rd area if choosing from singleplayer or you can launch it directly in gta2manager debug tab using skip frontend
Re: How can I change the vehicle data script settings?
Posted: 05 Nov 2025, 15:04
by dltmdwns156
If I check it like the picture above and run GTA2, it says "Unable to open file: ₩ style.style" and it doesn't work
Re: How can I change the vehicle data script settings?
Posted: 05 Nov 2025, 15:51
by Sektor
You need to type in bil.gmp, bil.ste and bil.sty into 3 different places. I’ll let you figure out where.
Re: How can I change the vehicle data script settings?
Posted: 06 Nov 2025, 03:05
by dltmdwns156
I tried it, but first of all, the script that was written and compiled in bil file was not applied to the game, but when I compiled it with my own file, it was applied. Is there anywhere I should write when I put a script in the bil.mis file? I wrote it at the bottom when I wrote it.
And I have more questions. When I saw it on the game, it was unlimited, but is there a script that limits the quantity and consumes it?

Re: How can I change the vehicle data script settings?
Posted: 06 Nov 2025, 04:49
by Sektor
I didn't know you were adding to the existing bil.mis
You can't just put it at the end, that code will never run because it's outside the existing WHILE ENDWHILE loop. You also shouldn't have more than one LEVELSTART and LEVELEND.
Before the existing LEVELSTART, put CAR_DATA any_apc
After the existing LEVELSTART, put:
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
Re: How can I change the vehicle data script settings?
Posted: 06 Nov 2025, 06:59
by dltmdwns156
I wrote it like the picture above, but it doesn't work in the game. Please review it
Re: How can I change the vehicle data script settings?
Posted: 06 Nov 2025, 08:16
by Sektor
Move it to after WHILE. That is the part where the main loop starts.
Re: How can I change the vehicle data script settings?
Posted: 06 Nov 2025, 11:11
by dltmdwns156
I wrote this below "WHILE" like the picture above, but it doesn't apply to the game. Please review it. Sorry for the inconvenience.
Re: How can I change the vehicle data script settings?
Posted: 06 Nov 2025, 11:24
by Sektor
bil already has an earlier PLAYER_PED command, so the player will actually be called shaft, not p1
Change this:
STORE_CAR_CHARACTER_IS_IN (shaft,any_apc)
Re: How can I change the vehicle data script settings?
Posted: 06 Nov 2025, 12:06
by dltmdwns156
Yes, I applied it as you said, and it's finally applied to the game. Thank you.
But looking at it, I'm inquiring because it's applied like this.
1. It doesn't apply to all APC armored vehicles, it only applies to vehicles with players. How do I apply the script to all APCs in the game?
2. When you get into a vehicle, you get a vehicle weapon, and it's unlimited. I wrote the ammunition count, for example, "50" at the back of the script
If you ride in a real game, it changes to 50 and then 99 without limit.
How do you limit and consume weapon ammunition?
Re: How can I change the vehicle data script settings?
Posted: 06 Nov 2025, 12:31
by Sektor
it gives 50 multiple times because it runs in a loop.
You can make it only give the weapon once by using the HAS_CAR_GOT_WEAPON check.
IF (NOT(HAS_CAR_GOT_WEAPON(any_apc,car_machine_gun)))
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
ENDIF
Actually that will probably give 50 ammo again once it runs out, didn't test it.
Applying that to all APCs and not just player APCs is difficult to do without crashing. I'll think about it later, it will require adding 188 to known CAR_DATA variables but since cars spawn and vanish, it's tricky to do in GTA2 script without crashing the game.
Re: How can I change the vehicle data script settings?
Posted: 06 Nov 2025, 12:50
by dltmdwns156
Thank you! It's now applied in the game!!
Still, the unfortunate thing is that you can't smash another vehicle like a tank. I can't do this with the script and STY TOOL, right? I can only do it with the video I posted earlier, right?
Re: How can I change the vehicle data script settings?
Posted: 10 Nov 2025, 20:14
by B-$hep
You use my "
GTA2 ScriptPad" or something else?