Results 1 to 4 of 4
  1. #1
    JardelRulez's Avatar
    Join Date
    Sep 2016
    Gender
    male
    Posts
    26
    Reputation
    10
    Thanks
    0

    Some Doubts - Native Trainer

    I have some problems here and I hope someone can help me with some of them... Thank you !

    Question 01:

    The code are right:

    Code:
    	if (getOption() == 2)
    	{
    		Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED(selectedPlayer), 0);
    		GAMEPLAY::SHOOT_SINGLE_BULLET_BETWEEN_COORDS(coords.x + 5, coords.y + 5, coords.z + 5, coords.x, coords.y, coords.z, 100, 1, GAMEPLAY::GET_HASH_KEY("WEAPON_GRENADE"), PLAYER::PLAYER_PED_ID(), 1, 1, 100);
    	}
    But Im trying to get the sniper shot to hit the target but the shot is not firing: ( if I change the coordinates to shoot close, it works normally )

    Code:
    	if (getOption() == 6)
    	{
    		Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED(selectedPlayer), 0);
    		GAMEPLAY::SHOOT_SINGLE_BULLET_BETWEEN_COORDS(coords.x, coords.y, coords.z, coords.x, coords.y, coords.z, 100, 1, GAMEPLAY::GET_HASH_KEY("WEAPON_ADVANCEDRIFLE"), PLAYER::PLAYER_PED_ID(), 1, 1, 100);
    	}
    Does anyone have an idea?

    ===============

    Question 02:

    Why is not it working? ( works only on me )

    Code:
    	else if (getOption() == 5)
    	{
    		if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::GET_PLAYER_PED(selectedPlayer), true))
    		{
    			int vehicle = PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED(selectedPlayer), false);
    			NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(vehicle);
    			if (NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(vehicle))
    			{
    				ENTITY::SET_ENTITY_COORDS(vehicle, -1991.348, 3200.953, 32.39795, 1, 0, 0, 1);
    				drawNotification("Teleported to: ~b~Hangar~w~.");
    			}
    		}
    	}

    ===============

    Question 03:

    What is wrong with the code?

    Code:
    Vector3 tpcar;
    void toNearestCar()
    {
    	int VehID = VEHICLE::GET_CLOSEST_VEHICLE(tpcar.x, tpcar.y, tpcar.z, 100, 0, 70);
    	PED::SET_PED_INTO_VEHICLE(PLAYER::PLAYER_PED_ID(), VehID, -1);
    }
    Any attempt to help is welcome.
    Last edited by JardelRulez; 05-02-2018 at 04:18 PM.

  2. #2
    rgw4hgreherherh's Avatar
    Join Date
    Apr 2018
    Gender
    male
    Posts
    67
    Reputation
    10
    Thanks
    184
    My Mood
    Bitchy
    GET_PLAYER_PED is detected

  3. The Following User Says Thank You to rgw4hgreherherh For This Useful Post:

    JardelRulez (05-02-2018)

  4. #3
    JardelRulez's Avatar
    Join Date
    Sep 2016
    Gender
    male
    Posts
    26
    Reputation
    10
    Thanks
    0
    Thx for info
    Last edited by JardelRulez; 05-02-2018 at 05:59 PM.

  5. #4
    JardelRulez's Avatar
    Join Date
    Sep 2016
    Gender
    male
    Posts
    26
    Reputation
    10
    Thanks
    0
    Updated:

    I have some problems here and I hope someone can help me with some of them... Thank you !

    Question 01:

    The code are right:

    Code:
    	if (getOption() == 2)
    	{
    		Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED(selectedPlayer), 0);
    		GAMEPLAY::SHOOT_SINGLE_BULLET_BETWEEN_COORDS(coords.x + 5, coords.y + 5, coords.z + 5, coords.x, coords.y, coords.z, 100, 1, GAMEPLAY::GET_HASH_KEY("WEAPON_GRENADE"), PLAYER::PLAYER_PED_ID(), 1, 1, 100);
    	}
    But Im trying to get the sniper shot to hit the target but the shot is not firing: ( if I change the coordinates to shoot close, it works normally )

    Code:
    	if (getOption() == 6)
    	{
    		Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED(selectedPlayer), 0);
    		GAMEPLAY::SHOOT_SINGLE_BULLET_BETWEEN_COORDS(coords.x, coords.y, coords.z, coords.x, coords.y, coords.z, 100, 1, GAMEPLAY::GET_HASH_KEY("WEAPON_ADVANCEDRIFLE"), PLAYER::PLAYER_PED_ID(), 1, 1, 100);
    	}
    Does anyone have an idea?

    ===============

    Question 02:

    How do I change this code to teleport the player without a vehicle?

    Code:
    bool TeleportClientHook(int Client, float Coords, float y, float z)
    {
    	Ped handle = PLAYER::GET_PLAYER_PED(Client);
    	if (PED::IS_PED_IN_ANY_VEHICLE(handle, 0))
    	{
    		handle = PED::GET_VEHICLE_PED_IS_IN(handle, 0);
    		if (NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(handle))
    		{
    			ENTITY::SET_ENTITY_COORDS(handle, Coords, y, z, 0, 0, 0, 1);
    			drawNotification("~b~Teleported !");
    			return true;
    		}
    		return false;
    	}
    	else
    	{
    		drawNotification("~r~Failed !");
    		return false;
    	}
    }
    Any attempt to help is welcome.

Similar Threads

  1. [Outdated] GTA 5 - Native Trainer + ScriptHook + Loader
    By HillarySupporter in forum Grand Theft Auto 5 (GTA V) Hacks & Cheats
    Replies: 48
    Last Post: 06-16-2015, 07:17 PM
  2. [Release] GTA 5 Scripthook - Native Trainer + Loader + Tutorial
    By yy9ui1 in forum Grand Theft Auto 5 (GTA V) Hacks & Cheats
    Replies: 15
    Last Post: 05-03-2015, 03:29 AM
  3. [Outdated] GTA 5 - Native Trainer + ASI Loader + ScriptHook + North Yankton
    By VipHacker3 in forum Grand Theft Auto 5 (GTA V) Hacks & Cheats
    Replies: 90
    Last Post: 04-30-2015, 04:21 PM
  4. [Outdated] GTA 5 - Native Trainer + ASI Loader + ScriptHook
    By VipHacker3 in forum Grand Theft Auto 5 (GTA V) Hacks & Cheats
    Replies: 114
    Last Post: 04-25-2015, 08:00 PM
  5. [Solved] Some doubts
    By Xibengas in forum Call of Duty Ghosts Discussions & Help
    Replies: 7
    Last Post: 01-06-2014, 11:50 AM

Tags for this Thread