frodzet Posted June 13, 2016 Share Posted June 13, 2016 Greetings, I'm trying to retrieve the string of the character i'm currently on, i want to retrieve it from the pause menu. I have tried a whole bunch of stuff, but unfortunately i only get back my Username and not the currently played character's name. I think it can be retrieved through: STAT_GET_STRING but not sure what hash statName to put to retrieve the string literal value. Anyone who knows how to do it? :-) Link to comment Share on other sites More sharing options...
ins1de Posted June 13, 2016 Share Posted June 13, 2016 You mean to retrieve the current character name? You can also perform a model check on the player. Link to comment Share on other sites More sharing options...
frodzet Posted June 13, 2016 Author Share Posted June 13, 2016 (edited) You mean to retrieve the current character name? You can also perform a model check on the player. Yes retrieve the current character name :-) I know, but i don't need the model check, i need the text displaying the character's name from the PauseMenu :-) Edited June 13, 2016 by frodzet Link to comment Share on other sites More sharing options...
unknown modder Posted June 13, 2016 Share Posted June 13, 2016 You mean to retrieve the current character name? You can also perform a model check on the player. Yes retrieve the current character name :-) I know, but i don't need the model check, i need the text displaying the character's name from the PauseMenu :-) I think he means check if your character is Micheal,Franklin or Trevor, something like this switch(ENTITY::GET_ENTITY_MODEL(PLAYER::PLAYER_PED_ID()){ case 0xD7114C9: return "Micheal"; case 0x9B22DBAF: return "Franklin"; case 0x9B810FA2: return "Trevor";}return "NOT_A_PLAYER"; Link to comment Share on other sites More sharing options...
milkjunk87 Posted June 14, 2016 Share Posted June 14, 2016 Model myoriginalmodel = Game.Player.Character.Model; Link to comment 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