JohnLehn Posted May 31, 2020 Share Posted May 31, 2020 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
MrKAREEM Posted June 1, 2020 Share Posted June 1, 2020 (edited) 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 June 1, 2020 by MrKAREEM Link to comment
JohnLehn Posted June 1, 2020 Author Share Posted June 1, 2020 (edited) 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 June 1, 2020 by iRackk Link to comment
MrKAREEM Posted June 1, 2020 Share Posted June 1, 2020 (edited) 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 June 1, 2020 by MrKAREEM Link to comment
JohnLehn Posted June 1, 2020 Author Share Posted June 1, 2020 Just now, MrKAREEM said: not a problem when you use OnClientPlayerTarget Check if IsPedAiming 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 Thanks a lot! 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now