Coookie Posted March 23, 2008 Posted March 23, 2008 Can u add locked cars or unuseable cars to a stealth map? if so, how????
Ace_Gambit Posted March 23, 2008 Posted March 23, 2008 I am not familiar with the stealth game mode. But if you create client side vehicles they are locked to anyone by default. http://development.mtasa.com/index.php? ... ateVehicle
Coookie Posted March 23, 2008 Author Posted March 23, 2008 Can i add the line: vehicle createVehicle ( int model, float x, float y, float z, [float rx, float ry, float rz, string numberplate] ) into a map if i have all the info i need about the position and car???
Ace_Gambit Posted March 23, 2008 Posted March 23, 2008 I guess you can. But you will have to add the line to the lua script file and not the map file.
Coookie Posted March 23, 2008 Author Posted March 23, 2008 so i cant add it into 1 specific map??? (u said they locked by default, was that a typo ?)
Dark Dragon Posted March 23, 2008 Posted March 23, 2008 you can! its easy to bind a lua script to a single map. write the necessary lines in a lua file and add a line like that one to the meta.xml file: <script src="vehiclesIWantToSpawn.lua" /> of course you have to include this file in your .zip file in the end.
Ace_Gambit Posted March 24, 2008 Posted March 24, 2008 You will have to create a client-side lua script that creates the vehicles at xyz. Then you will have to include the script in the resource meta XML file.
Coookie Posted March 24, 2008 Author Posted March 24, 2008 - - that work and then i add the car line with positions and stuff into the map file? and r u sure they are locked by default and how can i change it???
Dark Dragon Posted March 24, 2008 Posted March 24, 2008 you don't have to add it to the map file. you add it to the lua file!
Coookie Posted March 24, 2008 Author Posted March 24, 2008 =o kk so how can i change it if i want it locked or unlocked???
Ace_Gambit Posted March 24, 2008 Posted March 24, 2008 I forgot to mention that client-side created vehicles are not visible to anyone with the exception of the creator. As a result you may want to create them in a server-side script and use setVehicleLocked function to lock or unlock vehicles.
Coookie Posted March 24, 2008 Author Posted March 24, 2008 I forgot to mention that client-side created vehicles are not visible to anyone with the exception of the creator. As a result you may want to create them in a server-side script and use setVehicleLocked function to lock or unlock vehicles. u making it even harder now, i think i won't be able to do something like that
Coookie Posted March 25, 2008 Author Posted March 25, 2008 kk somebody made me the stuff so now i can adds em i think thanks for the replies
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now