@JohnFromGWN
Thank you, I found it.
var isHidden = Function.Call<bool>(Hash.ARE_PLAYER_STARS_GREYED_OUT, Game.Player);
@JohnFromGWN
Thank you, I found it.
var isHidden = Function.Call<bool>(Hash.ARE_PLAYER_STARS_GREYED_OUT, Game.Player);
Hello,
Do you know of any methods to determine if a player is evading the police? I have come across a native function that provides the current wanted level, but it doesn't indicate whether the player is hiding (when the wanted level stars are flashing) or not.
The function I am referring to is:
int GET_PLAYER_WANTED_LEVEL(Player player);
Thanks guys, I think I found easy soultion.
// Disable phone and quick saveing
Game.DisableControlThisFrame(GTA.Control.Phone);
@MissySnowie
Thank you for reply.
But in my case, game still allow me to save when I am ambient ped.
It's Japanese but you can see saving function is alive while player is a cop.
I have just noticed that save data with ambient ped wont crash the game on load, but it forces me to change skin to protagonist and teleport me to their house. This behaivior is acceptable, but I simply preffer to disable saving.
@JohnFromGWN
Thank you.
But I need to block all saving functions as well as manual saving from code.
Because my mod makes player to change to ambient ped model, if you save the game during that will lead to infinite model loading on game load.
To avoid it happens accidentally, I need to block all saving functions or detect save event to turn off my mod before save data creates.
Hi, How can I prevent player to save the game?
My mod may crashes save data, so I need to control it.
Hello.
In my mod, I change charcter model to police man and try to increase his special ability bar over time.
But I noticed if charcter is not one of main charcters, special ability bar is disabled and greyed out.
// Native functions I tried
Does anyone know how it works when player is not main charcter?
Thank you in advance.