damn i dont even play GTA 5 like that but nice post fam
(12-24-2018 - 03:08 AM)XBLxPhantom Wrote:(11-01-2018 - 02:38 PM)trinity7 Wrote:Late Happy Halloween Guys. Haven't Posted In A While, So Here You Go, Pretty Simple Protection I Made.There Are Many Ways Of Doing This, But This Is Just A Simple Way.Have Fun
good release but I've noticed that when you attach a merc to yourself it crashes.. not sure if it's the same when someone else attaches it but that's what happens
hmm, doesnt crash me, how are u attaching mercs to ur self? this never happened to me, it should just print that someone tried attaching mercs and then instantly detacgh and delete them, with no issues.
(12-24-2018 - 03:08 AM)XBLxPhantom Wrote:(11-01-2018 - 02:38 PM)trinity7 Wrote:Late Happy Halloween Guys. Haven't Posted In A While, So Here You Go, Pretty Simple Protection I Made.There Are Many Ways Of Doing This, But This Is Just A Simple Way.Have Fun
good release but I've noticed that when you attach a merc to yourself it crashes.. not sure if it's the same when someone else attaches it but that's what happens
Juts edited it a bit, try that version. should work good now bro
2021 Best Be Better Then 2020
Code:
void SpawnMurderer()
{
int SelectedClient = PLAYER::GET_PLAYER_PED(selectedPlayer);
Vector3 pedcoords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED(selectedPlayer), true);
int head65 = PED::GET_PED_BONE_INDEX(SelectedClient, 31086);
int PedHash = (1641334641);
int PedHash2 = (-1849016788);
if (STREAMING::IS_MODEL_IN_CDIMAGE(PedHash) && STREAMING::IS_MODEL_IN_CDIMAGE(PedHash2))
{
if (STREAMING::IS_MODEL_VALID(PedHash) && STREAMING::IS_MODEL_VALID(PedHash2))
{
STREAMING::REQUEST_MODEL(PedHash);
STREAMING::REQUEST_MODEL(PedHash2);
if (STREAMING::HAS_MODEL_LOADED(PedHash) && STREAMING::HAS_MODEL_LOADED(PedHash2))
{
int ped = PED::CREATE_PED(21, PedHash, pedcoords.x + 3, pedcoords.y, pedcoords.z, 0.0f, false, true);
int ped2 = PED::CREATE_PED(21, PedHash2, pedcoords.x - 3, pedcoords.y, pedcoords.z, 0.0f, false, true);
NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(ped);
NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(ped2);
NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(SelectedClient);
NETWORK::SET_NETWORK_ID_EXISTS_ON_ALL_MACHINES(ped, true);
NETWORK::SET_NETWORK_ID_EXISTS_ON_ALL_MACHINES(ped2, true);
ENTITY::ATTACH_ENTITY_TO_ENTITY(ped, PLAYER::GET_PLAYER_PED(selectedPlayer), head65, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, false, false, true, true, false, 0);
ENTITY::ATTACH_ENTITY_TO_ENTITY(ped2, ped, head65, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, false, false, true, true, false, 0);
ENTITY::SET_ENTITY_PROOFS(ped, true, true, true, false, true, true, true, true);
ENTITY::SET_ENTITY_PROOFS(ped2, true, true, true, false, true, true, true, true);
WEAPON::GIVE_DELAYED_WEAPON_TO_PED(ped, WEAPON_GRENADE_LAUNCHER, 9999, true);
WEAPON::SET_PED_INFINITE_AMMO_CLIP(ped, true);
AI::TASK_SHOOT_AT_ENTITY(ped, SelectedClient, 5000, 0xC6EE6B4C);
NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(ped);
WEAPON::GIVE_DELAYED_WEAPON_TO_PED(ped2, 0x63AB0442, 9999, true);
WEAPON::SET_PED_INFINITE_AMMO_CLIP(ped2, true);
AI::TASK_SHOOT_AT_ENTITY(ped2, SelectedClient, 5000, 0xC6EE6B4C);
NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(ped2);
}
}
}
}
this is what I'm attaching them with. It may be because of something in this, but i'm not sure. Will try the updated Version, also been doing some of my own tweaking around to fix.
(12-24-2018 - 10:40 AM)XBLxPhantom Wrote:NiceCode:void SpawnMurderer()
{
int SelectedClient = PLAYER::GET_PLAYER_PED(selectedPlayer);
Vector3 pedcoords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED(selectedPlayer), true);
int head65 = PED::GET_PED_BONE_INDEX(SelectedClient, 31086);
int PedHash = (1641334641);
int PedHash2 = (-1849016788);
if (STREAMING::IS_MODEL_IN_CDIMAGE(PedHash) && STREAMING::IS_MODEL_IN_CDIMAGE(PedHash2))
{
if (STREAMING::IS_MODEL_VALID(PedHash) && STREAMING::IS_MODEL_VALID(PedHash2))
{
STREAMING::REQUEST_MODEL(PedHash);
STREAMING::REQUEST_MODEL(PedHash2);
if (STREAMING::HAS_MODEL_LOADED(PedHash) && STREAMING::HAS_MODEL_LOADED(PedHash2))
{
int ped = PED::CREATE_PED(21, PedHash, pedcoords.x + 3, pedcoords.y, pedcoords.z, 0.0f, false, true);
int ped2 = PED::CREATE_PED(21, PedHash2, pedcoords.x - 3, pedcoords.y, pedcoords.z, 0.0f, false, true);
NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(ped);
NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(ped2);
NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(SelectedClient);
NETWORK::SET_NETWORK_ID_EXISTS_ON_ALL_MACHINES(ped, true);
NETWORK::SET_NETWORK_ID_EXISTS_ON_ALL_MACHINES(ped2, true);
ENTITY::ATTACH_ENTITY_TO_ENTITY(ped, PLAYER::GET_PLAYER_PED(selectedPlayer), head65, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, false, false, true, true, false, 0);
ENTITY::ATTACH_ENTITY_TO_ENTITY(ped2, ped, head65, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, false, false, true, true, false, 0);
ENTITY::SET_ENTITY_PROOFS(ped, true, true, true, false, true, true, true, true);
ENTITY::SET_ENTITY_PROOFS(ped2, true, true, true, false, true, true, true, true);
WEAPON::GIVE_DELAYED_WEAPON_TO_PED(ped, WEAPON_GRENADE_LAUNCHER, 9999, true);
WEAPON::SET_PED_INFINITE_AMMO_CLIP(ped, true);
AI::TASK_SHOOT_AT_ENTITY(ped, SelectedClient, 5000, 0xC6EE6B4C);
NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(ped);
WEAPON::GIVE_DELAYED_WEAPON_TO_PED(ped2, 0x63AB0442, 9999, true);
WEAPON::SET_PED_INFINITE_AMMO_CLIP(ped2, true);
AI::TASK_SHOOT_AT_ENTITY(ped2, SelectedClient, 5000, 0xC6EE6B4C);
NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(ped2);
}
}
}
}
this is what I'm attaching them with. It may be because of something in this, but i'm not sure. Will try the updated Version, also been doing some of my own tweaking around to fix.
#CelestialFTW
Users browsing: 16 Guest(s)