I forgot to reply to you about this. I noticed this on PC too and it wasn't an "upgrade". I did a quick google search and others seemed have this on PC too. So I guess its just normal.
Printable View
To be honest I didn't actually use your trainer I just took some parts of your vehicle spawner Routine and put the changes into mine. Probably something to do with the speed of deleting the old vehicle and immediately creating a new one because I didn't have the problem before I made the changes. Hmm, and putting in a slight delay between creating a new vehicle would spoil the effect. Anyway seeing as, and afaik, it's only affecting the PCJ I don't mind.
Just a quick comment, when I made my own character changer, I was baffled for a while why, whenever I went to call change player model, it was freezing the game. How thick I can be sometimes, I wasn't even loading the model first!
Updated Trainer to 1.0 BETA2
This was supposed to include full EFLC support & sco's. But I didn't get time to finish it. So it will have to wait till tomorrow.
Changelog
1.0 BETA2
- Updated to Menu Library 1.1 (Changelog)
- Loading models quickly broke menu. menu_core will no longer be called while loading a model. Reported by HuN. (1)
- Added wanted menu.
- Added voice of model when model is changed.
- Added initial EFLC support. Weapons (untested). Category episode checks.
- Added error audio event.
- Changing model will no longer remove invincibility. (5)
i noticed that you have it where you can add stuff to the phone like options could you elaborate on how to add other scripts to the menu. you remember how you can activate ur menu through the phone an example would be great
Updated Trainer to 1.0 BETA3
Full EFLC support with instructions in first post :cool:
Known bug: Crazy noise effect on top/bottom of screen on TLAD.
Changelog
1.0 BETA3
- Full EFLC support.
- Added TLaD/TBoGT weapons.
- Fixed category episode checks.
- Changing model will no longer remove 'never wanted'.
- 'Never wanted' will now show as 'On' if enabled and you reopen the trainer.
- Startup audio event was out of sync of menu displaying from last update. It now starts when the menu is finished loading.
- Pressing 'Exit' in menu will no longer produce error before closing.
I did it by editing spcellphonemain.sco in SCOToolBox. It was no easy feat I must say ;) It took a lot of changes to the opcodes. So I suggest comparing the opcodes of my modified one with the original using a diff viewer.
If you want me to explain a specific change then let me know.
whats up, heres a little fix for the player spawner.
when in a car and interior changing player model would turn the player invisible and when in a building with more than 2 floors it would teleport you to the first floor.
Code:void player_model_apply(void)
{
uint player_model = menu_item[item_selected].num_val;
float curHeading, curX, curY, curZ;
int player_key;
GET_CHAR_HEADING(GetPlayerPed(), &curHeading);
GET_CHAR_COORDINATES(GetPlayerPed(), &curX, &curY, &curZ);
GET_KEY_FOR_CHAR_IN_ROOM(GetPlayerPed(), &player_key);
if (IS_CHAR_IN_ANY_CAR(GetPlayerPed()))
{
GET_CAR_CHAR_IS_USING(GetPlayerPed(), &v_modding);
SET_ROOM_FOR_CHAR_BY_KEY(GetPlayerPed(), player_key);
}
else
{
v_modding = 0;
}
CHANGE_PLAYER_MODEL(GetPlayerIndex(), player_model);
MARK_MODEL_AS_NO_LONGER_NEEDED(player_model);
model_loaded = false;
SET_CHAR_DEFAULT_COMPONENT_VARIATION(GetPlayerPed());
FORCE_FULL_VOICE(GetPlayerPed());
if (DOES_VEHICLE_EXIST(v_modding))
WARP_CHAR_INTO_CAR(GetPlayerPed(), v_modding);
SET_CHAR_HEADING(GetPlayerPed(), curHeading);
if (IS_INTERIOR_SCENE())
{
//float cGroundZ;
//GET_GROUND_Z_FOR_3D_COORD(curX, curY, curZ, &cGroundZ);
//SET_CHAR_COORDINATES_NO_OFFSET(GetPlayerPed(), curX, curY, cGroundZ);
//LOAD_SCENE(curX, curY, curZ);
SET_ROOM_FOR_CHAR_BY_KEY(GetPlayerPed(), player_key);
}
if (GET_NUMBER_OF_INSTANCES_OF_STREAMED_SCRIPT("3s_trainer_health") == 1)
SET_PLAYER_INVINCIBLE(GetPlayerIndex(), true);
if (GET_NUMBER_OF_INSTANCES_OF_STREAMED_SCRIPT("3s_trainer_wanted") == 1)
{
CLEAR_WANTED_LEVEL(GetPlayerIndex());
SET_WANTED_MULTIPLIER(0.0);
}
}
Thanks EvilB, works a treat :cheers:
Committed: https://bitbucket.org/ThreeSocks/gta...ainer_player.c
It will be in next release ;)
Hi, is this made to be able to work online? I tried loading up a FreeMode with it and I got an infinite loop upon loading Free Mode. Really wanted to get this trainer online, not sure if it was a mistake I made with my network_startup.sco or what.
Three-Socks, please fix invincible mode and improve never wanted, everytime I push a cop and he fall down and I get wanted even never wanted turn on