G_M_StYlEr_M Posted May 12, 2011 Share Posted May 12, 2011 Hello together. Anyone know how to place cars on Cordinates or on special Places ?? Thx so far Link to comment Share on other sites More sharing options...
ikt Posted May 12, 2011 Share Posted May 12, 2011 Hello together. Anyone know how to place cars on Cordinates or on special Places ?? Thx so far You can spawn cars on any coordinate using scripthook. Link to comment Share on other sites More sharing options...
G_M_StYlEr_M Posted May 12, 2011 Author Share Posted May 12, 2011 Hello together. Anyone know how to place cars on Cordinates or on special Places ?? Thx so far You can spawn cars on any coordinate using scripthook. Can you tell me more Any tutorial for that or something ? Link to comment Share on other sites More sharing options...
L0uNGeR Posted May 12, 2011 Share Posted May 12, 2011 You can change "position" to any coordinate you like.... using System;using System.Windows.Forms;using GTA;namespace Lounger{ // PRESS V TO SPAWN AN INFERNUS public class SpawnVehicle : Script { Keys SpawnVehiclekey = Keys.V; Vehicle Vehicle; Model Model = "INFERNUS"; Vector3 Position; float RotationZ = 90f; public SpawnVehicle() { this.KeyDown += new GTA.KeyEventHandler(SpawnVehicle_KeyDown); } internal void SpawnVehicle_KeyDown(object sender, GTA.KeyEventArgs e) { if (e.Key != SpawnVehiclekey) return; // Get a position in a radius of 6 around the player Position = Player.Character.Position.Around(6f); // Create the vehicle Vehicle = World.CreateVehicle(Model, Position); // Or simply: CreateVehicle(Vector3 position); // Check if the vehicle actually exists if (Vehicle == null || !Vehicle.Exists()) return; // Rotate it Vehicle.Rotation = new Vector3(0f, 0f, RotationZ); // Freeze & unfreeze to make it stuck on it's position until it's touched Vehicle.FreezePosition = true; Vehicle.FreezePosition = false; } }} Link to comment Share on other sites More sharing options...
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