Jump to content

Display help only once


7katwoal12

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...