Jump to content

Can u add locked cars or unuseable cars to a stealth map?


Coookie

Recommended Posts

Posted

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???

Posted

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.

Posted

-

-

that work :D 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??? :shock:

Posted

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.

Posted
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 :(

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...