コード例 #1
0
        public static int CreatePoliceStation(Vector3 position, float heading, PoliceStationIds policeStationId)
        {
            int newPoliceStationId = Function.Call <int>(Hash.ADD_POLICE_RESTART, position.X, position.Y, position.Z, heading, (int)policeStationId);

            CustomPoliceStations.Add(newPoliceStationId);

            return(newPoliceStationId);
        }
コード例 #2
0
 public static void DisablePoliceStation(PoliceStationIds policeStationId)
 {
     Function.Call(Hash.DISABLE_POLICE_RESTART, (int)policeStationId, true);
 }