How to use lambda menu with qb-core or esx


I have a question
How do I make an weapon that I spawn from lambda an real inventory item because if I spawn a gun and try to put it in my trunk for example it doesn’t and if an cop tries to search me also not

If you know how to fix this please let me know
Thx for reading