[+] Elevator System. + FIB, LSED, Ballas & GS duty / weapon rack

This commit is contained in:
Lukas Moungos
2019-07-26 00:13:27 +02:00
parent 0f4710e7da
commit 511b05a5e6
7 changed files with 163 additions and 5 deletions

View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Text;
using GTANetworkAPI;
using ReallifeGamemode.Server.Managers;
namespace ReallifeGamemode.Server.Events
{
public class UpdateCharacterElevator : Script
{
[RemoteEvent("sendClientToStage")]
public void SaveWeaponSelection(Client client, string stage)
{
ElevatorPoint elevator = PositionManager.ElevatorPoints.Find(e => e.Stage == stage);
if(elevator != null)
{
client.Position = elevator.Position;
}
}
}
}