AxelDV Posted June 2, 2017 Share Posted June 2, 2017 Vehicle VEHICLE_ID = PED::GET_VEHICLE_PED_IS_USING(PLAYER::PLAYER_PED_ID()); char car3 = VEHICLE_ID; Hash car2 = GAMEPLAY::GET_HASH_KEY(&car3); char* car = VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(car2); I using this and say CARNOTFOUND Link to comment https://gtaforums.com/topic/888422-how-get-dispaly-name-from-using-vehicle-c/ Share on other sites More sharing options...
alloc8or Posted June 2, 2017 Share Posted June 2, 2017 Vehicle vehicle = PED::GET_VEHICLE_PED_IS_USING(PLAYER::PLAYER_PED_ID());Hash model = ENTITY::GET_ENTITY_MODEL(vehicle);char* displayName = VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(model);// char* localizedName = UI::_GET_LABEL_TEXT(displayName); AxelDV 1 Link to comment https://gtaforums.com/topic/888422-how-get-dispaly-name-from-using-vehicle-c/#findComment-1069609533 Share on other sites More sharing options...
AxelDV Posted June 2, 2017 Author Share Posted June 2, 2017 Vehicle vehicle = PED::GET_VEHICLE_PED_IS_USING(PLAYER::PLAYER_PED_ID());Hash model = ENTITY::GET_ENTITY_MODEL(vehicle);char* displayName = VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(model);// char* localizedName = UI::_GET_LABEL_TEXT(displayName); Very Thanks Link to comment https://gtaforums.com/topic/888422-how-get-dispaly-name-from-using-vehicle-c/#findComment-1069611277 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now