Jump to content

Explain (Marker)


Best-Killer

Recommended Posts

Guys i'm making a bank system i want know how to make Id of the marker !!

example :

i create marker 2 markers now when player hitmarker number 1 the gui will be showen to the player 

if the player hit marker number 1 he get in the gui panel : ----Bank System (1)---

if the player hit marker number 2 he get in the gui : ----Bank System (2)---

hope you unerstand me 

 

 

Link to comment

You can do such a thing like this ;

 

addEventHandler ( 'onClientMarkerHit',root,
	function ( aHit )
		if ( aHit and aHit == localPlayer ) then
		if ( source == aMyMarkerOne ) then
			guiSetVisible ( aMyWnd,true );
			showCursor ( true );
			guiSetText ( aMyWnd,'Bank System (1)' );
		elseif ( source == aMyMarkerTwo ) then
			guiSetVisible ( aMyWnd,true );
			showCursor ( true );
			guiSetText ( aMyWnd,'Bank System (2)' );
		end
	end
end
);

 

This is just an example you can do it shorter but i wrote it to show you how you can do it.

 

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...