Added spawn ped feature. (#377)

This commit is contained in:
aa15032261
2022-08-10 08:42:34 +08:00
committed by GitHub
parent 8a9588b1e1
commit c83dee8700
32 changed files with 1178 additions and 608 deletions

View File

@ -30,6 +30,7 @@ namespace big
if (!item_json["Category"].is_null())
{
this->weapon_type = item_json["Category"];
this->weapon_type = this->weapon_type.substr(6);
}
this->hash = item_json["Hash"];
@ -61,7 +62,7 @@ namespace big
}
}
if (this->weapon_type == "GROUP_MELEE" || this->weapon_type == "GROUP_UNARMED" || is_gun)
if (this->weapon_type == "MELEE" || this->weapon_type == "UNARMED" || is_gun)
{
this->reward_hash = rage::joaat((reward_prefix + std::string(item_json["Name"])).c_str());