Jump to content
cybercoco

[SOLVED] if (magazines player find _varContainingObjectId > 0)

Recommended Posts

I would like to search if the player has a certain object in his person. If so, code will be executed.

I've used the following :

if (magazines player find FirstAidKit > 0)

It works fine, but I would like to have a variable instead containing the object's id.

I tried the code bellow, and it didn't work :

_id = """FirstAidKit""" // _id is holding the name : "FirstAidKit"
if (magazines player find _id > 0)

Is it actually possible to make it work that way ?

Share this post


Link to post
Share on other sites


_id = "FirstAidKit" // _id is holding the name : "FirstAidKit"

if (magazines player find _id > 0)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×