KingSparrow Posted May 2, 2018 Share Posted May 2, 2018 (edited) Solved ! Edited May 5, 2018 by KingSparrow Link to comment Share on other sites More sharing options...
CamxxCore Posted May 2, 2018 Share Posted May 2, 2018 I have some problems here and I hope someone can help me with some of them... Thank you ! Question 01: The code are right: 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 ) 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: bool Thief = false;bool thief(){ if (Thief ) { STREAMING::REQUEST_MODEL(GAMEPLAY::GET_HASH_KEY("g_m_m_chicold_01")); Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED(selectedPlayer), 1); if (STREAMING::HAS_MODEL_LOADED(GAMEPLAY::GET_HASH_KEY("g_m_m_chicold_01"))) { int Ped = PED::CREATE_PED(21, GAMEPLAY::GET_HASH_KEY("g_m_m_chicold_01"), coords.x, coords.y +15, coords.z, 0, 1, 0); if (ENTITY::DOES_ENTITY_EXIST(Ped)) { STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(GAMEPLAY::GET_HASH_KEY("g_m_m_chicold_01")); RequestNetworkControl(Ped); ENTITY::SET_ENTITY_INVINCIBLE(Thief, true); // I tried this GiveWeaponPed(Ped, 0x1B06D571); makePedHostile(Ped, selectedPlayer, true); return true; } return false; } return false; }} How do I get the character to come with godmode? I tried: ENTITY::SET_ENTITY_INVINCIBLE(Thief, true); =============== Question 03: Why is not it working? ( works only on me ) 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 04: What is wrong with the 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. Your third code snippet suggests you are trying to mod GTA V online. Most will not help you with that here. Link to comment Share on other sites More sharing options...
KingSparrow Posted May 2, 2018 Author Share Posted May 2, 2018 (edited) The Menu is for My FiveM server ( Im Admin ) Edited May 2, 2018 by KingSparrow Link to comment Share on other sites More sharing options...
KingSparrow Posted May 4, 2018 Author Share Posted May 4, 2018 (edited) Solved ! Edited May 5, 2018 by KingSparrow 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