FeiGaa Posted December 19, 2017 Share Posted December 19, 2017 Hi everybody, Currently, I am working on traffic sign extraction based on 'DeepGTAV'. I am going to extraction useful information like traffic signs and lights. Unlike pedestrians and vehicles, Traffic sign doesn't have funtions like: 'GET_PED_TYPE' or 'IS_THIS_MODEL_A_CAR'. So, it is not easy to decide whether the entities is our target objects. Here is the code I want to use for traffic sign extraction: int count = worldGetAllObjects(objects, ARR_SIZE);model = ENTITY::GET_ENTITY_MODEL(objects[i]);// if(model is a sign) do something;// else skip; The variable 'model' contains lots of redundant entities. Here is the link I found from the from this forum. My idea is filter out the useless objects by looking up to the object hash table. I find that there are negative values in this hash list, but the 'model' is 'long unsigned' type. Any advice or help will be greatly appreciated~ Link to comment Share on other sites More sharing options...
blo0oddrunk Posted December 20, 2017 Share Posted December 20, 2017 !The last time I looked into that is quite some time ago so I might be Wrong! On sites like https://github.com/lulzmodder/hnp you can see all the Props of the game. If you want to detect traffic signs you will most likely have to save all the Hashcodes of traffic signs in a List and compare the found objects with that list. It's pretty annoying since you have to go through all the 3k Hashes. The Hashcodes given by "lulzmodder" seems to be signed but if you want to use a list from somebody else (don't know if there are any others) just cast the signed int to unsigned int Hope this helps Link to comment Share on other sites More sharing options...
FeiGaa Posted December 20, 2017 Author Share Posted December 20, 2017 Thanks bro! Also, I found a great resource of GTA-V objects hash id. Link to comment Share on other sites More sharing options...