Advertisement
julioCCs

Untitled

Oct 12th, 2012
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.40 KB | None | 0 0
  1. Imports System
  2. imports system.windows.forms
  3. Imports GTA
  4.  
  5. Public Class Tests
  6.     Inherits Script
  7.    
  8.     Public Sub New()
  9.         me.interval = 100
  10.     End Sub
  11.    
  12.     Private Sub GraphicsEventHandler(ByVal sender As Object, ByVal e As GTA.GraphicsEventArgs) Handles mybase.PerFrameDrawing
  13.     ' happens everyframe, used for draw textures, show msgs, etc, dont use wait() or loops here, can freeze the game
  14.     End Sub
  15.    
  16.     Private Sub msg(ByVal smsg As String, ByVal duracao As int32)
  17.         Native.Function.Call("PRINT_STRING_WITH_LITERAL_STRING_NOW", "STRING", smsg, duracao, 1)
  18.     End Sub
  19.  
  20.     Private Function random(ByVal min As int32, ByVal max As int32)
  21.         Dim rnd As random = New random(System.DateTime.Now.Millisecond)
  22.         random = rnd.next(min, max)
  23.     End Function
  24.  
  25.     Private Sub console_CMD(ByVal sender As Object, ByVal e As ConsoleEventArgs) Handles MyBase.ConsoleCommand
  26.     ' use to nterpret console commands
  27.     End Sub
  28.  
  29.     Shadows Sub keyDown(ByVal sender As Object, ByVal e As GTA.KeyEventArgs) Handles MyBase.KeyDown
  30.         ' happens when you press a key
  31.     End Sub
  32.     shadows Sub keyUp(ByVal sender As Object, ByVal e As GTA.KeyEventArgs) Handles MyBase.KeyUp
  33.         ' happens when you release a key
  34.     End Sub
  35.    
  36.     Private Sub general_tick(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Tick
  37.     ' this part happens each 100 ms
  38.     End Sub
  39. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement