|
|
|
|
Would you like to get all the new info from
PSX-Scene in your email each day?
Want to learn more about the team keeping you up to date with the latest scene news?
Read about them now! Check out our Developer bios, too! | ||
|
|
what source code is good
Code:///////////////////////////////1/////////////////////////////////// void ChangePlayerModel(uint model){ REQUEST_MODEL(model); while(!HAS_MODEL_LOADED(model)) WAIT(0); CHANGE_PLAYER_MODEL(GetPlayerIndex(), model); MARK_MODEL_AS_NO_LONGER_NEEDED(model); } #define MODEL_M_O_HASID_01 0x12345678 ////////////////////////////////2///////////////////////////////// int changePlayerModel(uint hash) { Ped player = GetPlayerPed(); CHANGE_PLAYER_MODEL(&player, hash); return 0; } ///////////////////////////3/////////////////////////////////// /*void ChangePlayerModel(uint Pmodel){ LoadModel(Pmodel); CHANGE_PLAYER_MODEL(GetPlayerIndex(), Pmodel); MARK_MODEL_AS_NO_LONGER_NEEDED(Pmodel); WAIT(0); }*/

i wish you would read what i said more closely;
i said change 0x12345678 to the real hash of the model.
if we assume that the integer that Raeralus gave you is the correct then you should have put either:
orCode:#define MODEL_M_O_HASID_01 2655607511
OR if we take account Raeralus's use of "ifs" then you could put either:Code:#define MODEL_M_O_HASID_01 0x9E495AD7
orCode:#ifndef MODEL_M_O_HASID_01 #define MODEL_M_O_HASID_01 2655607511 #endif
Take your pick and if you happen to choose one that uses a Hex hash and the game crashes then try the one that uses an Integer hash instead and if the game still crashes then its almost definitely a different problemCode:#ifndef MODEL_M_O_HASID_01 #define MODEL_M_O_HASID_01 0x9E495AD7 #endif
Last edited by ribonucleic; 01-09-2013 at 10:25 PM.

Ok, I got my carspawn thingy to not freeze on activation, but it still makes me lag a little bit.
How do I stop this?
| « Previous Thread | Next Thread » |
| Tags for this Thread |