Best-Killer Posted November 1, 2016 Share Posted November 1, 2016 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
Dimos7 Posted November 1, 2016 Share Posted November 1, 2016 (edited) marker1=createMarker marker2=createMarker Event Name "onCLientMarkerHit" guiSetVisible ofc its a example Edited November 1, 2016 by Dimos7 Link to comment
iPrestege Posted November 1, 2016 Share Posted November 1, 2016 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
#BrosS Posted November 1, 2016 Share Posted November 1, 2016 You can name the marker and addevent for it Exemple. Bank1 = createMarker(x, y, z) -- your bank position addEventHandler( "onMarkerHit", Bank1 ) Link to comment
Best-Killer Posted November 1, 2016 Author Share Posted November 1, 2016 i'm using SQL Link to comment
Gravestone Posted November 1, 2016 Share Posted November 1, 2016 You can create a column with the id of the marker. Link to comment
Best-Killer Posted November 1, 2016 Author Share Posted November 1, 2016 Okk i'll try ^^ 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