feat(Features): Added kick hashes and kick method to player window

This commit is contained in:
Yimura 2021-01-01 01:11:55 +01:00
parent 89151f5dda
commit c94e18e2d5
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682
2 changed files with 14 additions and 2 deletions

View File

@ -60,9 +60,17 @@ namespace big
if (ImGui::Button("Kick (Non-Host)"))
{
uint64_t args[4] = { (uint64_t)1317868303, (uint64_t)PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(g_selectedPlayer.id), 0, 0 };
QUEUE_JOB_BEGIN_CLAUSE()
{
uint64_t args[4] = { 0, (uint64_t)PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(g_selectedPlayer.id), 0, 0 };
g_pointers->m_trigger_script_event(1, args, 4, 1 << g_selectedPlayer.id);
for (int64_t kick_hash : kick_hashes)
{
args[0] = kick_hash;
g_pointers->m_trigger_script_event(1, args, 4, 1 << g_selectedPlayer.id);
}
}QUEUE_JOB_END_CLAUSE
}
if (ImGui::Button("Kick from Vehicle"))

View File

@ -3,6 +3,10 @@
namespace big
{
inline const int64_t kick_hashes[]{ 1317868303,-1243454584,-1212832151,-1252906024,-1890951223,-442306200,-966559987,1977655521,1998625272,1070934291,764638896,-345371965,-1559754940,1347850743,495824472,1240585650,1129105265,1192658057,3042061272,2735212356, 3852661096,123310597000,122994296644, -1549630786, -1990292823, 1352706024, 12442595688, 11325146948, 11631995864, 96893296585, 98341941608, 97224492868, 97540793224, 1317868303,-1243454584,-1212832151,-1252906024,-1890951223,-442306200,-966559987,1977655521,1998625272,1070934291,764638896,-345371965,-1559754940,1347850743,495824472,1240585650,1129105265,1192658057,3042061272,2735212356, 3852661096,123310597000,122994296644, -1549630786, -1990292823, 1352706024,
-1549630786, -1990292823, -920663435, -891346918, -1729804184, -966559987, -1890951223, -1252906024, 665709549, -2065346036, 823645419, 1881968783, 2565163112, 2404016073, 3328407309, -977515445, 767605081, -1054826273, 1620254541, 1401831542, 1428412924, 10993950665, 11672069737, 12442595688, 11325146948, 11918341901, 10567590113,
11830075615, 9210190337, 97531341784, 96893296585, 98341941608, 97817687821, 96466936033, 97729421535, 95109536257, 97863584373, 96793954985, 97234617022, 96487905784, 95560214803, 97571415657, 97224492868, 95807148815, 97540793224 };
inline const char* location_names[] =
{
"Eclipse Towers", "West Vinewood", "Las Lagunas", "Spanish Ave", "Power St", "Del Perro",