Advertisement
gatno

Untitled

Feb 17th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using GTANetworkAPI;
  5.  
  6. namespace exo
  7. {
  8. class Testings : Script
  9. {
  10. public ColShape col;
  11.  
  12. public Testings() {
  13. CreateMarker();
  14. }
  15.  
  16. [RemoteEvent("devGetPosition")]
  17. public void DevGetPosition(Client player, params object[] arguments)
  18. {
  19. Vector3 PlayerPos = player.Position;
  20. Vector3 PlayerRot = player.Rotation;
  21. player.TriggerEvent("setDevGuiPosition", PlayerPos.X, PlayerPos.Y, PlayerPos.Z, PlayerRot.X, PlayerRot.Y, PlayerRot.Z);
  22. }
  23.  
  24. public void CreateMarker()
  25. {
  26. Vector3 Pos = new Vector3(424.0694, -973.5068, 30);
  27. NAPI.Marker.CreateMarker(1, Pos, new Vector3(), new Vector3(), 1, new Color(255, 255, 0));
  28. col = NAPI.ColShape.CreateSphereColShape(Pos, 5, 0);
  29. col.OnEntityEnterColShape += Event_OnPlayerEnterColShape;
  30.  
  31. }
  32.  
  33. public void Event_OnPlayerEnterColShape(ColShape colShape, Client player)
  34. {
  35. player.SendChatMessage("Entered Marker");
  36. }
  37.  
  38.  
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement