public static void SkyDive() { int ped = PLAYER.PLAYER_PED_ID(); Vector3 vec = ENTITY.GET_ENTITY_COORDS(ped, true); ENTITY.SET_ENTITY_COORDS(ped, vec.X, vec.Y, 2500f, true, true, true, true); AI.TASK_SKY_DIVE(ped); }
private void chkLocation_CheckedChanged(object sender, EventArgs e) { if (!chkLocation.Checked) { return; } Task.Run(delegate { int ped = PLAYER.PLAYER_PED_ID(); while (true) { if (!chkLocation.Checked) { break; } Vector3 vec = ENTITY.GET_ENTITY_COORDS(ped, true); lblLoction.Text = string.Format("X: {0} Y: {1} Z: {2}", vec.X, vec.Y, vec.Z); } }); }
public static Vector3 GetPosition() { return(ENTITY.GET_ENTITY_COORDS(PLAYER.PLAYER_PED_ID(), true)); }