Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using GrandTheftMultiplayer.Server.API;
- using GrandTheftMultiplayer.Shared.Math;
- namespace dillauge
- {
- class sBusdriver : Script
- {
- public sBusdriver()
- {
- API.onResourceStart += startBusdriver;
- }
- public void startBusdriver()
- {
- new BusStop("Busbahnhof LS", new Vector3(438.875, -685.101, 27.884), new Vector3(0.0, 0.0, 0.0), false);
- }
- }
- // Klasse - Bushaltestelle
- class BusStop : Script
- {
- public string location { get; set; }
- public Vector3 pos { get; set; }
- public Vector3 rot { get; set; }
- public bool alreadyExist { get; set; }
- // Konstruktor
- public BusStop() { }
- public BusStop(string location, Vector3 pos, Vector3 rot, bool alreadyExist)
- {
- this.location = location;
- this.pos = pos;
- this.rot = rot;
- this.alreadyExist = alreadyExist;
- if(!alreadyExist)
- API.createObject(2142033519, pos, rot);
- API.createTextLabel(rot.X + ", " + rot.Y + ", " + rot.Z, new Vector3(pos.X + 2.2, pos.Y + 0.25, pos.Z + 1.3), 50.0f, 0.5f, true);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement