Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

Dmitri Medeleiv

Line to access InventoryItem with IsInventoryItem

Recommended Posts

Evening ! I spent the last 2 days trying to find if a player has a particular item in his inventory.

I saw with the workbench that there is a function IsInventoryItem. It supposed to return a bool but when I put a line like : bool reply = player.IsInventoryItem(apple);  bool reply = player.IsInventoryItem("apple");  or it just crashed when it start .

Is anybody know how to make that work ! thanks !

Edited by Dmitri Medeleiv

Share this post


Link to post
Share on other sites

×