cybercoco 16 Posted January 24, 2016 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
cybercoco 16 Posted January 24, 2016 _id = "FirstAidKit" // _id is holding the name : "FirstAidKit" if (magazines player find _id > 0) Share this post Link to post Share on other sites