Ermmm, it could be easily done but to keep it standalone I just left that out, if you take a look into [FREE] Developer LUA Utility Library v1.2.0 - FiveM Resource Development & Modding / Releases - Cfx.re Community
I have all of the functions within here to make “standalone” items usable and adding / removing from invents etc. Currently only covers boii
, qb
, ox
, and esx_legacy
though, can always add more if use something different
All the heavy lifting has been done for you in there though