whopperlover17 Posted June 16, 2015 Share Posted June 16, 2015 (edited) using GTA; using System; using System.Windows.Forms; using System.Collections.Generic; public class ScriptOne : Script { public ScriptOne() { Tick += OnTick; KeyDown += OnKeyDown; KeyUp += OnKeyUp; Interval = 10; } void OnTick(object sender, EventArgs e) { } void OnKeyDown(object sender, KeyEventArgs e) { } void OnKeyUp(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.H) { Ped player = Game.Player.Character; GTA.Math.Vector3 spawnLoc = player.Position = (player.ForwardVector * 5); GTA.World.CreateVehicle(new Model("Zentorno"), spawnLoc); } } } This doesn't work! Can someone help? Edited June 17, 2015 by whopperlover17 Link to comment Share on other sites More sharing options...
Mgel Posted June 17, 2015 Share Posted June 17, 2015 Do this instead. GTA.Math.Vector3 spawnLoc = player.Position + (player.ForwardVector * 5); zusky_mods 1 Link to comment Share on other sites More sharing options...
whopperlover17 Posted June 17, 2015 Author Share Posted June 17, 2015 Do this instead. GTA.Math.Vector3 spawnLoc = player.Position + (player.ForwardVector * 5); It works, but it's still teleporting me underground with the Zentornos inside me. And then after falling a bit, im back on ground. Link to comment Share on other sites More sharing options...
whopperlover17 Posted June 17, 2015 Author Share Posted June 17, 2015 Nevermind I got it working. 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