How do I get a player prop's entity handle?

Can anyone tell me how to get the entity handle of a player prop?

For example. I need to check if my player has a duffel bag, and if he hasn’t he will spawn one. And if he has he will use that one. The problem is, if I spawn the duffel bag I get the entity handle because CreateObject() returns the entity handle. But I have no idea how to get the entity handle if it’s already equipped onto the player. Can anyone help me here, please?

If you are referring to the bag that’s part of the player’s clothing, then you’ll need to check for it with clothing natives:

I tried working with them yesterday but couldn’t really figure them out, could you give me an example? Either way thanks!

Show the code you tried to use.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.