NOLABaby8732 Posted June 26, 2013 Share Posted June 26, 2013 How do you tell if the current players model is a female or male? no matter what model i have IS_CHAR_MALE returns true. this is my model chaning script: CheckModelLoad(MODEL_F_Y_STRIPPERC02);WAIT(100);CHANGE_PLAYER_MODEL(GET_PLAYER_ID(), MODEL_F_Y_STRIPPERC02);WAIT(500);MARK_MODEL_AS_NO_LONGER_NEEDED(MODEL_F_Y_STRIPPERC02); IDK if that needs to somehow update your ped attributes or what. Someplease help. Thank you in advance EDIT: BTW this is SCOCL Link to comment Share on other sites More sharing options...
HadesOfGTA Posted June 28, 2013 Share Posted June 28, 2013 I am not familiar with SCOCL, however, if I were to do this in C++ I would simply write my own function to check. Try writing a function that returns a boolean value, with one argument that takes in the Ped/Player in question. Inside this function define an array that contains all male players, or all female. only do one.. male or female. Define a variable that holds the player/ped current model Loop through the array checking if the model of player is equal to any in the array If not, then the player is the opposite of the sex you defined in the array. 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