View Single Post
Author Message
damage220
Member
Join Date: Jul 2022
Location: Ukraine
Old 03-19-2024 , 23:06   Is there an alternative to reapi's rg_set_iteminfo?
Reply With Quote #1

I am looking for a way to change item info of weapon entity. Like the following but without reapi module.
PHP Code:
rg_set_iteminfo(entItemInfo_pszNameWEAPON_NAME);
rg_set_iteminfo(entItemInfo_pszAmmo1AMMO_NAME);
rg_set_iteminfo(entItemInfo_iMaxAmmo11);
rg_set_iteminfo(entItemInfo_iIdWEAPON_FAKE_ID);
rg_set_iteminfo(entItemInfo_iPosition4);
rg_set_iteminfo(entItemInfo_iWeight1); 
I know there is *HamItemInfo set of function but as far as I understand these functions do not accept entity variable, and they are used to "set a parameter on the fly of the current hook". I need to change item info any time like rg_set_iteminfo does. Is there an alternative to this function provided by any module shipped with amxmodx?
damage220 is offline