Jump to content

[QUESTION]Resource


Recommended Posts

Hi! Can someone tell me how can i make this ? : When you aim a NPC with a gun it will appers in front of NPC a checkpoint, when you enter him, it will show you a small GUI with some buttons, like, " Check ID " or things like this. Please

Link to comment

What does NPC mean ?

but u can use these events :

OnClientPlayerTarget

IsPedAiming

CreateMarker

OnClientMarkerHit

OnClientMarkerLeave ( IF you want to do something when he leave the checkpoint )

GuiSetVisible

at the end you must create a window using guieditor and add buttons to it then when the player enter the marker use guiSetVisible for showing it

hope i helped u

Edited by MrKAREEM
Link to comment
4 minutes ago, MrKAREEM said:

What does NPC mean ?

but u can use these events :

OnClientPlayerTarget

IsPedAiming

CreateMarker

OnClientMarkerHit

OnClientMarkerLeave ( IF you want to do something when he leave the checkpoint )

GuiSetVisible

at the end you must create a window using guieditor and add buttons to it then when the player enter the marker use guiSetVisible for showing it

hope i helped u

NPC is that ped in Gta San Andreas who is walking on streets. I wanted the script for Emergency Server. Thanks for help!

Edited by iRackk
Link to comment
5 minutes ago, iRackk said:

NPC is that ped in Gta San Andreas who is walking on streets. I wanted the script for Emergency Server. Thanks for help!

not a problem when you use OnClientPlayerTarget

Check if IsPedAiming for check if the player aiming with a weapon

then check if the target in OnClientPlayerTarget is NPC

and if it was then

use GetElementPosition for get the position of the NPC then

CreateMarker with the position of the NPC

and when you enter the checkpoint OnClientMarkerHit

use GuiSetVisible

Edited by MrKAREEM
Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...