Página 1 de 1
[SA/Help] Set player car visibility 0
Enviado: 27 Jun 2022, 21:16
por max74
Trying 0338: set_car 14@ visibility 0
with latest cleo, cleoplus and newopcodes
it happens in every script that uses that function, example:
https://www.mixmods.com.br/2017/03/fron ... olar-robo/
also with metal gear rex or metal gear ray cleo mods by ryosuke
It wont change car visibility to invisible, making the dinghy that the cleo uses visible, the script compiles and everything else works as expected, make cars invisible cheat also works without problem, makling the dinghy also invisible.
Is there any memory adress that could be used instead?
Re: Set player car visibility 0
Enviado: 27 Jun 2022, 22:17
por Ruben Viera
Just tested here without problems; but looks like you are using renderhook, i test the mod with renderhook and the bug appears; them is a renderhook problem and there is nothing that you can do to play with the mod and renderhook installed.
So you have 2 options
1) Uninstall renderhook and play with the mod
2) Uninstall the mod and play with renderhook
Another option is wait an update for the renderhook mod, but that will take quite a while; or wait to that mod be recreated in another way that don't need a invisible dinghy to work.
Of course you can always use another graphics mods like
SkyGfx or ENB series.
A lot of old mods use invisible vehicles to work (like supersparks/mastersparks that appear a sparrow when is used with renderhook); so the only way to play with them is uninstalling renderhook or recreate the mods.
I hope it has been useful to you.
Re: [SA/Help] Set player car visibility 0
Enviado: 28 Jun 2022, 10:25
por max74
Thank you very much,
Do you know some memory adress that makes the car invisible in cleo?.
only found the memory adress for player invisibility.
Código: Selecionar tudo
{$CLEO .cs}
0000: NOP
name_thread 'INVISIBLE'
:INVISIBLE_21
wait 0
request_anims "GANGS"
wait 100
if
have_anims_loaded "GANGS"
else_goto @INVISIBLE_21
goto @INVISIBLE_90
:INVISIBLE_65
wait 0
03BF: set_player $PLAYER_CHAR ignored_by_everyone 0
01F7: set_player $PLAYER_CHAR ignored_by_cops 0
goto @INVISIBLE_90
:INVISIBLE_90
wait 0
if
key_pressed 73
else_goto @INVISIBLE_90
get_ped_pointer 4@ $PLAYER_ACTOR
0A8E: 5@ = 4@ + 1140 // int
read_memory 7@ 5@ 4 0
write_memory 5@ 4 2 0
03BF: set_player $PLAYER_CHAR ignored_by_everyone 1
01F7: set_player $PLAYER_CHAR ignored_by_cops 1
wait 1000
goto @INVISIBLE_177
:INVISIBLE_177
wait 0
if
key_pressed 73
else_goto @INVISIBLE_177
write_memory 5@ 4 7@ 0
wait 1000
goto @INVISIBLE_65
This script makes the player invisible using memory adress in opcode 0A8E, it works using renderhook, but using 0337: set_actor $PLAYER_ACTOR visibility 0 does not.