Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* made by skyrocket*/
- /*please leave credit if used!*/
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using GTA.Native;
- using GTA; //scripthook
- using GTA.Math;
- namespace script
- {
- public class spawnerTUT : Script
- {
- public spawnerTUT()
- {
- KeyUp += keyval;
- }
- public void PrintText(string text, int time) //displays text on screen
- {
- GTA.Native.Function.Call(GTA.Native.Hash._0xB87A37EEB7FAA67D, "STRING");
- GTA.Native.Function.Call(GTA.Native.Hash._ADD_TEXT_COMPONENT_STRING, text);
- GTA.Native.Function.Call(GTA.Native.Hash._0x9D77056A530643F6, time, 1);
- }
- void keyval(object sender, KeyEventArgs e)
- {
- if (e.KeyCode == Keys.O) //spawns an adder when the "O" key is pressed
- {
- World.CreateVehicle(VehicleHash.Adder, Game.Player.Character.Position);
- PrintText("adder spawned", 2000);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement