Jump to content

Scroll menu appears and appears


WagnerMello

Recommended Posts

Hello everyone, I have the script to remove grass and add grass that appears in the scrolling menu of the character pore and has time that appears and time that does not and I'm not understanding how I do to keep it fixed without it fading!

I'll call them after
If (! Is Dedicated) then {
[] ExecVM "custom \ grass_active.sqf";
[] ExecVM "Scripts \ ativa_rules.sqf";

I put the rules because the same thing happens

grass.sqf

if (isnil "player_grass") then {
    player_grass = false;
};
if (player_grass) then {
    setTerrainGrid 25;
    systemchat "Grass turned on.";
    player_grass = false;
} else {
    setTerrainGrid 50;
    systemchat "Grass turned on.";
    player_grass = true;
};

grass active.sqf

waituntil {!isnull (finddisplay 46)};
sleep 15;
setview = player addaction [("<t color=""#FF0000"">" + ("GRAMA ON/OFF") +"</t>"),"custom\grass.sqf","",5,false,true,"",""];

Anyone know how to get it fixed please help me

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...