How to remove car?
how to remove a car?
as respawning I understood the world.newvehicles, etc..
but what command to remove the car from the world?
C++? .NET? LUA? I'm guessing .NET since you said "world.newvehicles"...
vehicle.Delete(); //or whatever your Vehicle variable is named
ENTITY::DELETE_ENTITY(Entity *entity) //Vehicle is an Entity
@Jitnaught yes .NET.
Very big thanks))
@Jitnaught how to build on the progress made in the script? I have a script to rent a car, how to save it for the character, so that after restarting the game it remained for the player ?
@CaTBaT You'd have to write an INI or XML file containing all of the data for the vehicle, such as model, colors, position, heading, etc. Then you'd have to load that INI/XML file at the start of your script and create the vehicle using the saved parameters.
@Jitnaught What is the difference between dll and LUA?
I'm sorry to ask a lot of stupid questions, but you're the only one who helps me.)))
@CaTBaT DLL is made in .NET, LUA is made in LUA, and ASI is made in C++.
DLLs are not always made in .NET, but regarding GTA V most of the time they are. If to install the DLL you put it in the root GTA V folder, and NOT the scripts folder, then it is NOT made in .NET and actually made in C++ (but this is not necessarily always true; DLLs can be made from many programming languages. But, for GTA V, C++ is what has been used when not .NET).
@Jitnaught Where can you find the number of cars? For their respawn. Example: (-163926748)
@CaTBaT Not sure what you mean. Do you mean the vehicle ID (the handle)? The model hash (number)? Or are you wanting to store all of the data for the vehicle (model, color, modkits) in one number?
@CaTBaT Do you mean the actual vehicle ID, or the Vehicle object? To get the ID:
I found it. I meant the hash of the car.)
Now the main questions :
How to assign a car to a player?
In the game there is a taxi rank. How to make sure that the taxis there are not respawn?