Invisible Car Fix (fix invisible cars)
Hello everyone! Have you encountered such a problem - you are in some interior (a stadium, for example) and spawned a car. But she is not! Or rather, it is, it just became invisible.
This fix fixes this problem and you can spawn "visible" cars in all interiors.
It can also be turned off by entering the cheat code "fixcars", which will make a characteristic sound.
For those who want to understand how it works...
Now in order. Car spawners do not take into account the fact that players can spawn cars (and not only) in interiors. Because of this, all cars are attached to interior 0(street),
but because we are not in interior 0, then the visible car will only be in interior 0 (that is, it is “invisible” for us). All this is solved by two lines of code after the car spawns.
Example:
Just these two lines:
But if we change the interior, the car will become “invisible”
This fix fixes this problem and you can spawn "visible" cars in all interiors.
It can also be turned off by entering the cheat code "fixcars", which will make a characteristic sound.
For those who want to understand how it works...
Now in order. Car spawners do not take into account the fact that players can spawn cars (and not only) in interiors. Because of this, all cars are attached to interior 0(street),
but because we are not in interior 0, then the visible car will only be in interior 0 (that is, it is “invisible” for us). All this is solved by two lines of code after the car spawns.
Example:
:CarCreating //stream name
wait 0 // wait otherwise the game will freeze
if // if
0ADC: test_cheat "elegy" //cheat code written
jump @CarCreating2 //if the cheat code is written, jump to the "CarCreating2" stream
:CarCreating2 //stream name
wait 0 //wait, otherwise the game will freeze
model.load(#elegy) //load model "elegy"(car model)
038B: load_requested_models //register the model in the game (the model won't load without this opcode)
if //if
model.available(#elegy) //model loaded
jf @CarCreating2 //otherwise go to the beginning of the "CarCreating2" stream
Car.create(0@ #elegy 1@ 2@ 3@) //create a car
077E: get_active_interior_to $ACTIVE_INTERIOR //see which interior the player is in
0840: link_car 0@ to_interior $ACTIVE_INTERIOR // "attach" (make it visible to us) car
car.RemoveReferences(0@) //remove car info
jump @CarCreating //jump to the very beginning of the script
where 0@ is the auto itself; #elegy - car model; 1@ 2@ 3@ - variables (in this case - coordinates); $ACTIVE_INTERIOR - interior number variable.
wait 0 // wait otherwise the game will freeze
if // if
0ADC: test_cheat "elegy" //cheat code written
jump @CarCreating2 //if the cheat code is written, jump to the "CarCreating2" stream
:CarCreating2 //stream name
wait 0 //wait, otherwise the game will freeze
model.load(#elegy) //load model "elegy"(car model)
038B: load_requested_models //register the model in the game (the model won't load without this opcode)
if //if
model.available(#elegy) //model loaded
jf @CarCreating2 //otherwise go to the beginning of the "CarCreating2" stream
Car.create(0@ #elegy 1@ 2@ 3@) //create a car
077E: get_active_interior_to $ACTIVE_INTERIOR //see which interior the player is in
0840: link_car 0@ to_interior $ACTIVE_INTERIOR // "attach" (make it visible to us) car
car.RemoveReferences(0@) //remove car info
jump @CarCreating //jump to the very beginning of the script
where 0@ is the auto itself; #elegy - car model; 1@ 2@ 3@ - variables (in this case - coordinates); $ACTIVE_INTERIOR - interior number variable.
Just these two lines:
077E: get_active_interior_to $ACTIVE_INTERIOR //see which interior the player is in
0840: link_car 0@ to_interior $ACTIVE_INTERIOR // "attach" (make it visible to us) car
where 0@ is the desired vehicle (vehicle); $ACTIVE_INTERIOR - interior number variable.
0840: link_car 0@ to_interior $ACTIVE_INTERIOR // "attach" (make it visible to us) car
where 0@ is the desired vehicle (vehicle); $ACTIVE_INTERIOR - interior number variable.
But if we change the interior, the car will become “invisible”
Category:
Section:
Author:
Nick Scripter
E-mail / website:
File size:
8.93 Kb
File replaces:
Unknown
Uploaded:
Downloads:
461
Download file
Download From Telegram
fast and easy
fast and easy
-
1605699120_invisiblecarsfix.zipDownload (0.01 MB)Password: libertycity
Recommended files
29 August 2010
GTA San Andreas
SWATwan with a machine gun
The script creates a police armored car (Swatvan), which will be parked at the station building at Cranberry Station. A machine gun (minigun) will be attached to the car, which, like a water gun, can rotate in horizontal and vertical planes - depen...
22 March 2012
GTA San Andreas
Submachine gun HK UMP
Submachine gun HK UMP envelope from the game "The Darkness 2 Limited Edition" to replace mp5lng.
1 February 2011
GTA San Andreas
Gun shop v.1
Brothers on Grove Street decided to open their own business! They built a gun store near CJ's house! The whole business is run by CJ, so he can always come in to sit there or "reinforce himself with cartridges." I noticed that in my previous scripts,...
31 March 2011
GTA San Andreas
Machine guns on mod Death Race
Well, some people asked me to make working machine guns for a wheelbarrow, at your request I had to master Sanny Builder, and so I did: to shoot, press the left Ctrl, that's it, fire ... um .... swing to health.
6 September 2012
GTA San Andreas
Better Gun Sounds - No Rain Bug
New HD sounds of the weather, shots from all weapons, explosions of grenades, rockets, bombs - listen to the video, put it into the game! P.S. No need to say what everyone can do, etc., try it yourself first [center] {video_v...
22 October 2024
GTA San Andreas
Busy Pedestrians: Peds Events Project
This modification is a combination of a large number of my modifications related to people, enlivening the world around us and adding huge variety to the game. The modifications are combined into one common ifp file, but each is located in a separat...
29 August 2017
GTA San Andreas
Remastered Gun Sounds
Good evening. This modification replaces the standard shooting sounds with the same sounds, only in improved quality. I hope you will like it. Requirements: Modloader; AsiLoader Installation: read the ReadMe in the archive with the file Demo: ...
1 September 2010
GTA San Andreas
Assassin's Creed 2 - GUN MOD
The model of a handgun from the game Assassin's Creed 2 This model of one of the weapons of Ezio - a handgun This model works only with the converted Ezio model from Assassin's Creed 2 Here is a link to it: Http://www.libertycity.ru/files...
22 September 2024
GTA San Andreas
DrIVe Mod
This mod is a combination of my 4 previous mods, namely: Stealing a car like in GTA 4 Stop animation like in GTA4 Starting the engine like in GTA4 Steering wheel Now they are united by one common ifp file, but you can remove the ...
5 February 2012
GTA San Andreas
Gun Para HD
A new parachute backpack, this is the fifteenth modification of the HD project, in addition to the new model, straps and fasteners have been added, because. straps with attachments have been adjusted only for the skin of Carl Johnson (buffed up) on o...
28 February 2011
GTA San Andreas
Top Gun Tomcat Skin Pack
2 models of Top Gun aircraft, super quality.
19 November 2013
GTA San Andreas
Dub Step Gun
First finished version: " DubStep Gun " Description: Everyone once wanted to buy a little time from the enemies in a single game) And there are many ways to do this. However, no one has yet tried to delay enemies with a dance :D This mod can make ...
12 May 2024
GTA San Andreas
Gangs Guns Variations v1.1
Now gang members will encounter different models of pistols, knives, Uzis and so on, which will make your gang shootouts a little more interesting. You can add an unlimited number of new models. The mod contains variations for weapons such as: C...
8 March 2013
GTA San Andreas
Realistic gun sounds v7.3
This mod replaces all the original sounds of pistols, explosions, fires, and bullets with more realistic ones without causing any errors. Read the README for more details.
19 June 2013
GTA San Andreas
Realistic Gun Sounds v8.0 2013
New version realistic weapon sounds . Replace all original sounds of shots, reloading and explosions with realistic ones. I personally tested it in the game - there are no bugs. Screenshots are of no use, so see the preview below. If you want to do...
Comments 3