Guest User

Untitled

a guest
Mar 28th, 2019
122
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //// CLIENTSIDE JOB /////
  2.  
  3. using RAGE.Elements;
  4. using RAGE;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Text;
  8.  
  9. namespace Main
  10. {
  11.     public class JobStuff : Events.Script
  12.     {
  13.  
  14.         Marker jobMarker = null;
  15.         Blip jobBlip = null;
  16.  
  17.  
  18.         Marker defaultMarker = null;
  19.         Blip defaultBlip = null;
  20.         TextLabel defaultText = null;
  21.  
  22.         public JobStuff()
  23.         {
  24.             Events.Add("CreateMarkers", JobInstance);
  25.             Events.Add("DeleteMarkers", DeleteJobInstance);
  26.             Events.Add("DeleteDefault", DeleteDefaultJob);
  27.             Events.Add("DefaultMarkers", CreateDefaultJob);
  28.  
  29.             CreateDefaultJob();
  30.         }
  31.  
  32.         public void CreateDefaultJob()
  33.         {
  34.  
  35.             defaultMarker = new Marker(1, new Vector3(-347.5829f, 1281.445f, 333.7606f - 1), 2, new Vector3(), new Vector3(), new RGBA(255, 255, 255, 100));
  36.             defaultBlip = new Blip(147, new Vector3(-347.5829f, 1281.445f, 333.7606f - 1), "", 1, 0, 255, 25, true);
  37.             defaultText = new TextLabel(new Vector3(-347.5829f, 1281.445f, 333.7606f), "'/startjob' to begin", new RGBA(0, 255, 0, 200), 10, 0, true);
  38.         }
  39.  
  40.         public void CreateDefaultJob(object[] args)
  41.         {
  42.  
  43.             defaultMarker = new Marker(1, new Vector3(-347.5829f, 1281.445f, 333.7606f - 1), 2, new Vector3(), new Vector3(), new RGBA(255, 255, 255, 100));
  44.             defaultBlip = new Blip(147, new Vector3(-347.5829f, 1281.445f, 333.7606f - 1));
  45.             defaultText = new TextLabel(new Vector3(-347.5829f, 1281.445f, 333.7606f), "'/startjob' to begin", new RGBA(0, 255, 0, 200), 10, 0, true);
  46.         }
  47.  
  48.         public void JobInstance(object[] args)
  49.         {
  50.             jobMarker = new Marker(1, new Vector3(227.1695f, 2115.825f, 106.7991f - 1), 2, new Vector3(), new Vector3(), new RGBA(255, 255, 255, 100));
  51.             jobBlip = new Blip(1, new Vector3(227.1695f, 2115.825f, 106.7991f - 1));
  52.         }
  53.  
  54.         public void DeleteDefaultJob(object[] args)
  55.         {
  56.             defaultMarker.Destroy();
  57.             defaultBlip.Destroy();
  58.             defaultText.Destroy();
  59.         }
  60.  
  61.         public void DeleteJobInstance(object[] args)
  62.         {
  63.             jobMarker.Destroy();
  64.             jobBlip.Destroy();
  65.         }
  66.     }
  67. }
RAW Paste Data