Jump to content
7katwoal12

Display help only once

Recommended Posts

hi! im making a ped on fire callout and i have assigned the "T" key to call the firetruck. What i want to do is when i press the T key the displayed help dissapear. I have this code: Thanks for the support

 if (Game.LocalPlayer.Character.DistanceTo(suspect) < 25f)
            {
                    Game.DisplayHelp("Press T to call firetruck");
            }
            if (Game.LocalPlayer.Character.DistanceTo(suspect) < 25f && Game.IsKeyDown(Keys.T))
            {
                Functions.RequestBackup(Game.LocalPlayer.Character.Position, LSPD_First_Response.EBackupResponseType.Code3,               LSPD_First_Response.EBackupUnitType.Firetruck);
            }

 

Edited by mmodsgtav
The code was badly written

Share this post


Link to post
Share on other sites
if (Game.LocalPlayer.Character.DistanceTo(suspect) < 25f)
{
Game.DisplayHelp("Press T to call firetruck");
if (Game.IsKeyDown(Keys.T)) {
Game.DisplayHelp("");
}
}

 

Share this post


Link to post
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

×