Jump to content

GPSFiremaker


Recommended Posts

  • 2 weeks later...
  • 4 weeks later...
Posted (edited)

Grats on release bro.

A few tips:

Set a font and color for the paint using
 

g.setFont(new Font("[NAME OF FONT]", Font.PLAIN, [FONT SIZE]);

g.setColor(Color.WHITE);

 

if you use Eclipse it will give you the import options.

An efficient way to get paint to hide is using a clickable rectangle. Here's a method below: (Place it in your onStart void)

		this.bot.addMouseListener(new BotMouseListener() {
			public void mouseClicked(java.awt.event.MouseEvent e) {
				Point point = e.getPoint(); 
				 Rectangle hideButton = new Rectangle(452,326,62,11);
			        if (hideButton.contains(point)) {
			        	showPaint = !showPaint;
			        }
				
			}

			@Override
			public void mousePressed(java.awt.event.MouseEvent e) {
				// TODO Auto-generated method stub
				
			}

			@Override
			public void mouseReleased(java.awt.event.MouseEvent e) {
				// TODO Auto-generated method stub
				
			}

			@Override
			public void mouseEntered(java.awt.event.MouseEvent e) {
				// TODO Auto-generated method stub
				
			}

			@Override
			public void mouseExited(java.awt.event.MouseEvent e) {
				// TODO Auto-generated method stub
				
			}

			@Override
			public boolean blockInput(Point arg0) {
				// TODO Auto-generated method stub
				return false;
			}
			
		});
		
	}

 

Make sure you change the rectangle to your coordinates and add something like

		if (!showPaint) {
			g.drawString("[Show Paint]", 457, 332);
			return;
		}

to your paint method.

Edited by TTScripts
Posted
1 hour ago, iroll said:

how does this run?

start acc in vwest bank and select the log type on the gui :)

36 minutes ago, TTScripts said:

Grats on release bro.

A few tips:

Set a font and color for the paint using
 


g.setFont(new Font("[NAME OF FONT]", Font.PLAIN, [FONT SIZE]);

g.setColor(Color.WHITE);

 

if you use Eclipse it will give you the import options.

An efficient way to get paint to hide is using a clickable rectangle. Here's a method below: (Place it in your onStart void)


		this.bot.addMouseListener(new BotMouseListener() {
			public void mouseClicked(java.awt.event.MouseEvent e) {
				Point point = e.getPoint(); 
				 Rectangle hideButton = new Rectangle(452,326,62,11);
			        if (hideButton.contains(point)) {
			        	showPaint = !showPaint;
			        }
				
			}

			@Override
			public void mousePressed(java.awt.event.MouseEvent e) {
				// TODO Auto-generated method stub
				
			}

			@Override
			public void mouseReleased(java.awt.event.MouseEvent e) {
				// TODO Auto-generated method stub
				
			}

			@Override
			public void mouseEntered(java.awt.event.MouseEvent e) {
				// TODO Auto-generated method stub
				
			}

			@Override
			public void mouseExited(java.awt.event.MouseEvent e) {
				// TODO Auto-generated method stub
				
			}

			@Override
			public boolean blockInput(Point arg0) {
				// TODO Auto-generated method stub
				return false;
			}
			
		});
		
	}

 

Make sure you change the rectangle to your coordinates and add something like


		if (!showPaint) {
			g.drawString("[Show Paint]", 457, 332);
			return;
		}

to your paint method.

gz on release on a script out almost 3 months ago? XD
font is already set, colour is set on my version but it was just a oversite on the uploaded version, and if I wanted to hide paint I would of added it :) 

Posted
26 minutes ago, GPSwap said:

start acc in vwest bank and select the log type on the gui :)

gz on release on a script out almost 3 months ago? XD
font is already set, colour is set on my version but it was just a oversite on the uploaded version, and if I wanted to hide paint I would of added it :) 

I don't know why but you're coming off as very snide. I was only trying to be helpful because the post was commented on recently and I just saw the topic. I was only offering advice and a hide paint option is smart, You should really consider one for your scripts. Best of luck, friend.

  • 2 weeks later...
  • 1 month later...

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